Example #1
0
 private void btnThem_Click(object sender, EventArgs e)
 {
     try
     {
         if (txtMatKhau.Text == "" || txtTaiKhoan.Text == "" || cboLoaiTK.Text == "" || txtMaNV.Text == "")
         {
             MessageBox.Show("Vui lòng điền đầy đủ thông tin");
         }
         else
         {
             tk.DangKi(txtMaNV.Text, txtTaiKhoan.Text, txtMatKhau.Text, cboLoaiTK.Text);
             MessageBox.Show("Hoàn tất thêm nhân viên");
             this.Close();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }