private void f_FormClosed(object sender, FormClosingEventArgs e) { ConnectionClass.myClose(); }
/// <summary> /// To close connection to database and exit from application. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Form1_FormClosing(object sender, FormClosingEventArgs e) { ConnectionClass.myClose(); Application.Exit(); }