1
Fork 0

added dialog for program closing

This commit is contained in:
Jake Howard 2014-11-06 10:22:28 +00:00
parent 6123e2d1a7
commit 61202f5bcf

View file

@ -67,8 +67,12 @@ namespace Saviour_Backup_System
internal static void closeProgram()
{
Application.Exit();
string exitMessage = "Are you sure you want to close Saviour Backup System? \n All 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)
{
Application.Exit();
}
}
}
}