/// <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(); }
/// <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(); }