Esempio n. 1
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. 2
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;
            }
        }