using System; using System.IO; using System.Windows.Forms; namespace GPSServer { static class Program { // public static SqlCarService carService = new SqlCarService(); /// /// 应用程序的主入口点。 /// [STAThread] static void Main() { var configName = System.AppDomain.CurrentDomain.BaseDirectory + @"log4net.config"; log4net.Config.XmlConfigurator.ConfigureAndWatch(new FileInfo(configName)); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Main()); } } }