Пример #1
0
        private void btOk_Click(object sender, EventArgs e)
        {
            Chooses ch = new Chooses();

            this.Visible = false;
            ch.ShowDialog();
            this.Close();
        }
Пример #2
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);
     }
 }