Example #1
0
 private void fLogin_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (MessageBox.Show("Bạn có chắc chắn muốn thoát không ?", "Thông báo", MessageBoxButtons.OKCancel) != System.Windows.Forms.DialogResult.OK)
     {
         ConnectData.Disconnect();
         e.Cancel = true;
     }
 }
Example #2
0
 private void fAccount_FormClosing(object sender, FormClosingEventArgs e)
 {
     ConnectData.Disconnect();
 }
Example #3
0
 private void fChiTieu_FormClosing(object sender, FormClosingEventArgs e)
 {
     ConnectData.Disconnect();
 }