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; } }
private void fAccount_FormClosing(object sender, FormClosingEventArgs e) { ConnectData.Disconnect(); }
private void fChiTieu_FormClosing(object sender, FormClosingEventArgs e) { ConnectData.Disconnect(); }