Пример #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     var logger = new ExceptionLogger();
     logger.AddLogger(new EventLogLogger());
     Application.Run(new FrmReplacementMenu());
 }
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     ExceptionLogger logger = new ExceptionLogger();
     logger.AddLogger(new WindowLogger());
     Application.Run(new Form1());
 }
Пример #3
0
 static void Main()
 {
     ExceptionLogger logger = new ExceptionLogger();
     logger.AddLogger(new TextFileLogger());
     AppDomain.CurrentDomain.ProcessExit += new EventHandler(OnProcessExit);
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new mainForm());
 }