From eb4dfe7f6080d677d65acce881b53d588f1e1ffe Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 16 Nov 2014 17:15:53 +0000 Subject: [PATCH] changed closing code to stop errors --- Saviour Backup System/mainWindow.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Saviour Backup System/mainWindow.cs b/Saviour Backup System/mainWindow.cs index 231e2db..189419e 100644 --- a/Saviour Backup System/mainWindow.cs +++ b/Saviour Backup System/mainWindow.cs @@ -162,6 +162,7 @@ namespace Saviour_Backup_System formatDriveCapacityTimer.Stop(); driveRefreshTimer.Stop(); this.Close(); + this.Dispose(); break; case(CloseReason.UserClosing): this.removeDisplay(); @@ -179,10 +180,6 @@ namespace Saviour_Backup_System setup.ABW.Show(); } - private void exitButton_Click(object sender, EventArgs e) - { - this.removeDisplay(); - setup.closeProgram(); - } + private void exitButton_Click(object sender, EventArgs e) { setup.closeProgram(); } } }