| 1234567891011121314151617181920212223242526272829303132333435 |
- using log4net;
- using System.Reflection;
- namespace Server.MirForms
- {
- static class Program
- {
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [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);
- }
- }
- }
- }
|