Beispiel #1
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     notifyIcon1.Dispose();
     GlobalClass.DoActionBeforeExiting();
 }
Beispiel #2
0
 public static void ExitProgram()
 {
     GlobalClass.DoActionBeforeExiting();
     GlobalClass.ParentForm.Dispose();
 }