private void button2_Click(object sender, EventArgs e)
        {
            LapPhieuKhamBenh_GUI pk = new LapPhieuKhamBenh_GUI();

            pk.ShowDialog();
            this.Hide();
        }
Esempio n. 2
0
        // nhan nut lap phieu kham benh, goi form LapPhieuKham
        private void button4_Click(object sender, EventArgs e)
        {
            if (txb_HoTen.Text == "" || txb_HoTen == null)
            {
                MessageBox.Show("Vui lòng chọn mã bệnh nhân!", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            LapPhieuKhamBenh_GUI x = new LapPhieuKhamBenh_GUI(int.Parse(txb_MaBN.Text.ToString()));

            this.Hide();
            x.ShowDialog();
        }
Esempio n. 3
0
 private void CTTT_GUI_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
     {
         LapPhieuKhamBenh_GUI x = new LapPhieuKhamBenh_GUI();
         this.Hide();
         x.Show();
     }
 }
Esempio n. 4
0
        private void button3_Click(object sender, EventArgs e)
        {
            DialogResult kq = MessageBox.Show("Bạn có muốn trở về màn hình chính?", "Thông Báo", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);

            if (kq == DialogResult.OK)
            {
                LapPhieuKhamBenh_GUI x = new LapPhieuKhamBenh_GUI();
                this.Hide();
                x.Show();
            }
            else
            {
                return;
            }
        }
Esempio n. 5
0
        private void lậpPhiếuKhámBệnhToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LapPhieuKhamBenh_GUI a = new LapPhieuKhamBenh_GUI();

            a.ShowDialog();
        }