Example #1
0
        private void btOk_Click(object sender, EventArgs e)
        {
            Chooses ch = new Chooses();

            this.Visible = false;
            ch.ShowDialog();
            this.Close();
        }
Example #2
0
        private void btQuayLai_Click(object sender, EventArgs e)
        {
            Form frm = Application.OpenForms["Chooses"];

            if (frm == null)
            {
                frm = new Chooses();
            }
            this.Hide();
            frm.Show();
        }
        private void btOk_Click(object sender, EventArgs e)
        {
            Form frm = Application.OpenForms["Chooses"];

            if (frm == null)
            {
                frm = new Chooses();
                MessageBox.Show("Bạn đã giao dịch thành công.", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            this.Hide();
            frm.Show();
        }
Example #4
0
 private void btDangNhap_Click(object sender, EventArgs e)
 {
     if (txtMaNV.Text != "" && txtMatKhau.Text != "")
     {
         Chooses ch = new Chooses();
         this.Visible = false;
         ch.ShowDialog();
         this.Close();
     }
     else
     {
         MessageBox.Show("Thông tin chưa được nhập.", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }