Пример #1
0
        private void BtnThemVaiTro_Click(object sender, EventArgs e)
        {
            frmThemSuaVaiTro frmtvt = new frmThemSuaVaiTro();

            frmtvt.ThemThanhCong += FillTreeView;
            frmtvt.ThemThanhCong += NhatKyThemVaiTro;
            frmtvt.ShowDialog();
        }
Пример #2
0
 private void BtnSua_Click(object sender, EventArgs e)
 {
     if (IDUser == null)
     {
         VaiTro           vt    = LayVaiTroDangChon();
         frmThemSuaVaiTro frmvt = new frmThemSuaVaiTro(vt);
         frmvt.CapNhatThanhCong += FillTreeView;
         frmvt.CapNhatThanhCong += NhatKySuaVaiTro;
         frmvt.ShowDialog();
     }
     else
     {
         NguoiDung           nd  = LayNguoiDungDangChon();
         frmThemSuaNguoiDung frm = new frmThemSuaNguoiDung(nd);
         frm.CapNhatThanhCong += FillTreeView;
         frm.CapNhatThanhCong += NhatKySuaNguoiDung;
         frm.ShowDialog();
     }
 }