1
Fork 0

changed closing code to stop errors

This commit is contained in:
Jake Howard 2014-11-16 17:15:53 +00:00
parent eacd021200
commit eb4dfe7f60

View file

@ -162,6 +162,7 @@ namespace Saviour_Backup_System
formatDriveCapacityTimer.Stop(); formatDriveCapacityTimer.Stop();
driveRefreshTimer.Stop(); driveRefreshTimer.Stop();
this.Close(); this.Close();
this.Dispose();
break; break;
case(CloseReason.UserClosing): case(CloseReason.UserClosing):
this.removeDisplay(); this.removeDisplay();
@ -179,10 +180,6 @@ namespace Saviour_Backup_System
setup.ABW.Show(); setup.ABW.Show();
} }
private void exitButton_Click(object sender, EventArgs e) private void exitButton_Click(object sender, EventArgs e) { setup.closeProgram(); }
{
this.removeDisplay();
setup.closeProgram();
}
} }
} }