示例#1
0
文件: Program.cs 项目: smartree/Zydeo
 /// <summary>
 /// Shows the update UI.
 /// </summary>
 private static void doUpdateForm(bool serviceStartedForUI)
 {
     FileLogger.Instance.LogInfo("Showing form.");
     if (Environment.OSVersion.Version.Major >= 6)
     {
         SetProcessDPIAware();
     }
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     uf = new ZydeoUpdateForm(doScheduleFileToDelete, serviceStartedForUI);
     Application.Run(uf);
     // When quitting gracefully, delete file
     // But never throw on this attempt
     doSafeDeleteScheduledFile();
 }
示例#2
0
文件: Program.cs 项目: sheeeng/Zydeo
 /// <summary>
 /// Shows the update UI.
 /// </summary>
 private static void doUpdateForm(bool serviceStartedForUI)
 {
     FileLogger.Instance.LogInfo("Showing form.");
     if (Environment.OSVersion.Version.Major >= 6) SetProcessDPIAware();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     uf = new ZydeoUpdateForm(doScheduleFileToDelete, serviceStartedForUI);
     Application.Run(uf);
     // When quitting gracefully, delete file
     // But never throw on this attempt
     doSafeDeleteScheduledFile();
 }