moved brace and added extra close code to make sure it does.
This commit is contained in:
parent
eb4dfe7f60
commit
576d9067cd
1 changed files with 2 additions and 2 deletions
|
@ -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.";
|
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);
|
DialogResult result = MessageBox.Show(exitMessage, "Saviour Backup System Exiting...", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
|
||||||
if (result == System.Windows.Forms.DialogResult.Yes) {
|
if (result == System.Windows.Forms.DialogResult.Yes) {
|
||||||
icon.notifyIcon.Dispose();
|
icon.notifyIcon.Dispose();
|
||||||
MW.removeDisplay();
|
MW.removeDisplay();
|
||||||
Environment.Exit(0);
|
Environment.Exit(0);
|
||||||
|
Application.Exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue