Makes ControlPanel.Dispose call Cleanup in main .cs file

This commit is contained in:
Cyberboss
2017-11-01 10:34:38 -04:00
parent bad5ef82a2
commit b0bd9458e3
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
{
if (disposing && (components != null))
{
Interface.Dispose();
Cleanup();
components.Dispose();
}
base.Dispose(disposing);
+8
View File
@@ -36,6 +36,14 @@ namespace TGControlPanel
LoadChatPage();
InitStaticPage();
}
/// <summary>
/// Called from <see cref="Dispose(bool)"/>
/// </summary>
void Cleanup()
{
Interface.Dispose();
}
private void Main_Resize(object sender, EventArgs e)
{