Ejemplo n.º 1
0
 static void RunApplication()
 {
     try
     {
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);
         formSettings form = new formSettings();
         Application.Run();
     }
     catch (Exception ex)
     {
         EventLog.WriteEntry("Application", ex.Message + Environment.NewLine + Environment.NewLine + ex.StackTrace, System.Diagnostics.EventLogEntryType.Error, 100);
     }
 }
Ejemplo n.º 2
0
 static void RunApplication()
 {
     try
     {
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);
         formSettings form = new formSettings();
         Application.Run();
     }
     catch (Exception ex)
     {
         EventLog.WriteEntry("Application", ex.Message + Environment.NewLine + Environment.NewLine + ex.StackTrace, System.Diagnostics.EventLogEntryType.Error, 100);
     }
 }