示例#1
0
 private void FrmUserGroups_Load(object sender, EventArgs e)
 {
     LoadGroups();
     ShowFirst();
     DTSecurity        = CSecurity.GetFormSecurity(this.Name);
     BtnNew.Enabled    = AllowSave();
     BtnSave.Enabled   = AllowEdit();
     BtnDelete.Enabled = AllowDelete();
 }
示例#2
0
 private void FrmUsers_Load(object sender, EventArgs e)
 {
     CDB.FillLookUpEdit(LUGroup, "TblUserGroups", "Name", "ID");
     LoadUsers();
     ShowFirst();
     DTSecurity        = CSecurity.GetFormSecurity(this.Name);
     BtnNew.Enabled    = AllowSave();
     BtnSave.Enabled   = AllowEdit();
     BtnDelete.Enabled = AllowDelete();
 }