changed closing code to stop errors
This commit is contained in:
parent
eacd021200
commit
eb4dfe7f60
1 changed files with 2 additions and 5 deletions
|
@ -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(); }
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue