private void MenuQuanLyKhamBenh_FormClosing(object sender, FormClosingEventArgs e) { this.Hide(); Form_Chinh f = new Form_Chinh(); f.ShowDialog(); }
private void btnThoat_Click(object sender, EventArgs e) { Form_Chinh f = new Form_Chinh(); this.Hide(); f.ShowDialog(); }
// nut Lap phiếu khám bệnh private void button6_Click(object sender, EventArgs e) { DialogResult dlr = MessageBox.Show("Bạn có thực sự muốn thoát không?", "Thông Báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dlr == DialogResult.Yes) { Form_Chinh x = new Form_Chinh(); this.Hide(); x.ShowDialog(); } //if (MessageBox.Show("Bạn có thực sự muốn thoát không?", "Thông Báo", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != System.Windows.Forms.DialogResult.OK) //{ // e.Cancel = true; //} //else //{ // Form_Chinh x = new Form_Chinh(); // this.Hide(); // x.ShowDialog(); //} }
private void QuyDinhTienKhamGUI_FormClosing(object sender, FormClosingEventArgs e) { this.Hide(); Form_Chinh f = new Form_Chinh(); f.ShowDialog(); }
private void button7_Click(object sender, EventArgs e) { DialogResult dlr = MessageBox.Show("Bạn có thực sự muốn thoát không?", "Thông Báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dlr == DialogResult.Yes) { Form_Chinh x = new Form_Chinh(); this.Hide(); x.ShowDialog(); } }
private void frmGhiKetQuaVaoPK_FormClosing(object sender, FormClosingEventArgs e) { if (MessageBox.Show("Bạn thực sự muốn thoát!", "Thông Báo", MessageBoxButtons.OKCancel) != System.Windows.Forms.DialogResult.OK) { e.Cancel = true; } else { this.Hide(); Form_Chinh f = new Form_Chinh(); f.ShowDialog(); } }
private void QuanLyThuoc_FormClosing(object sender, FormClosingEventArgs e) { if (MessageBox.Show("Bạn có thực sự muốn thoát không?", "Thông Báo", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != System.Windows.Forms.DialogResult.OK) { e.Cancel = true; } else { Form_Chinh x = new Form_Chinh(); this.Hide(); x.ShowDialog(); } }
private void buton_DangNhap_Click(object sender, EventArgs e) { string TenDangNhap = this.txb_TenDangNhap.Text; string MatKhau = txb_MatKhau.Text; if (BACSI_BUS.Instance.LoginBUS(TenDangNhap, MatKhau)) { BACSI bs = BACSI_BUS.Instance.GetAccountByUserName(TenDangNhap); Form_Chinh f = new Form_Chinh(bs); this.Hide(); f.ShowDialog(); } else { MessageBox.Show("Sai tên tài khoản hoặc mật khẩu!", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } }