示例#1
0
 private void AppStartup(object sender, StartupEventArgs e)
 {
     if (EnvironmentChecker.CheckEnviornment())
     {
         Initializer.ConfigLogger();
         Initializer.WriteConfig();
         Initializer.ClearOldLogs();
         Initializer.CheckUpdate();
         Logger.Info("程序正常启动");
     }
     else
     {
         Environment.Exit(0);
     }
 }