From 576d9067cd1f2b6feba5ea2a52a34a705f7deabc Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 16 Nov 2014 17:19:40 +0000 Subject: [PATCH] moved brace and added extra close code to make sure it does. --- Saviour Backup System/setup.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Saviour Backup System/setup.cs b/Saviour Backup System/setup.cs index baf0bc9..edc7543 100644 --- a/Saviour Backup System/setup.cs +++ b/Saviour Backup System/setup.cs @@ -38,14 +38,14 @@ namespace Saviour_Backup_System - public static void closeProgram() - { + public static void closeProgram() { string exitMessage = "Are you sure you want to close Saviour Backup System?\nAll copying backups and backup scanning will cease."; DialogResult result = MessageBox.Show(exitMessage, "Saviour Backup System Exiting...", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); if (result == System.Windows.Forms.DialogResult.Yes) { icon.notifyIcon.Dispose(); MW.removeDisplay(); Environment.Exit(0); + Application.Exit(); } } }