Exemplo n.º 1
0
 /// <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();
 }
Exemplo n.º 2
0
 /// <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();
 }