1
Fork 0

moved brace and added extra close code to make sure it does.

This commit is contained in:
Jake Howard 2014-11-16 17:19:40 +00:00
parent eb4dfe7f60
commit 576d9067cd

View file

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