Example #1
0
 private void Register_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (!bClose)
     {
         e.Cancel = true;
         myQuery.CloseConnection();
     }
 }
Example #2
0
 private void Process_FormClosing(object sender, FormClosingEventArgs e)
 {
     myQuery.CloseConnection();
 }