Corrects forms not being disposed

This commit is contained in:
Cyberboss
2017-10-02 11:09:46 -04:00
parent 703426a9d4
commit 7dbbafa36c
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -67,7 +67,8 @@ namespace TGControlPanel
return;
}
Hide();
new Main().ShowDialog();
using (var M = new Main())
M.ShowDialog();
Close();
}
+2 -1
View File
@@ -21,7 +21,8 @@ namespace TGControlPanel
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Login());
using(var L = new Login())
Application.Run(L);
}
catch (Exception e)
{