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