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();
|
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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue