using log4net; using System.Reflection; namespace Server.MirForms { static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { Packet.IsServer = true; var logRepository = LogManager.GetRepository(Assembly.GetEntryAssembly()); log4net.Config.XmlConfigurator.Configure(logRepository, new FileInfo("log4net.config")); try { Settings.Load(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new SMain()); Settings.Save(); } catch(Exception ex) { Logger.GetLogger().Error(ex); } } } }