private void f_FormClosed(object sender, FormClosingEventArgs e)
 {
     ConnectionClass.myClose();
 }
예제 #2
0
 /// <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();
 }