Ejemplo n.º 1
0
        private void btnThemVaiTro_Click(object sender, EventArgs e)
        {
            frmAddRole vt = new frmAddRole();

            vt.ThemThanhCong += FillCbVaiTro;
            vt.ShowDialog();
        }
Ejemplo n.º 2
0
        private void BtnThemVaiTro_Click(object sender, EventArgs e)
        {
            frmAddRole frmtvt = new frmAddRole();

            frmtvt.ThemThanhCong += FillTreeView;
            frmtvt.ThemThanhCong += NhatKyThemVaiTro;
            frmtvt.ShowDialog();
        }
Ejemplo n.º 3
0
 private void BtnSua_Click(object sender, EventArgs e)
 {
     if (IDUser == null)
     {
         VaiTro     vt    = LayVaiTroDangChon();
         frmAddRole frmvt = new frmAddRole(vt);
         frmvt.CapNhatThanhCong += FillTreeView;
         frmvt.CapNhatThanhCong += NhatKySuaVaiTro;
         frmvt.ShowDialog();
     }
     else
     {
         NguoiDung  nd  = LayNguoiDungDangChon();
         frmAddUser frm = new frmAddUser(nd);
         frm.CapNhatThanhCong += FillTreeView;
         frm.CapNhatThanhCong += NhatKySuaNguoiDung;
         frm.ShowDialog();
     }
 }