///<summary>Edit user group button.</summary> private void userControlSecurityTabs_EditUserGroupClick(object sender, SecurityEventArgs e) { FormCentralUserGroupEdit FormU = new FormCentralUserGroupEdit(e.Group); FormU.ShowDialog(); if (FormU.DialogResult == DialogResult.OK) { userControlSecurityTabs.FillListUserGroupTabUserGroups(); } }
private void butAddGroup_Click(object sender,EventArgs e) { UserGroup group=new UserGroup(); group.IsNew=true; FormCentralUserGroupEdit FormU=new FormCentralUserGroupEdit(group); FormU.ShowDialog(); if(FormU.DialogResult==DialogResult.Cancel) { return; } FillList(); }
private void listGroups_DoubleClick(object sender,EventArgs e) { if(listGroups.SelectedIndex==-1) { return; } UserGroup group=UserGroups.List[listGroups.SelectedIndex]; FormCentralUserGroupEdit FormUGE=new FormCentralUserGroupEdit(group); FormUGE.ShowDialog(); if(FormUGE.DialogResult==DialogResult.Cancel) { return; } FillList(); }
///<summary>Add user group button.</summary> private void userControlSecurityTabs_AddUserGroupClick(object sender, SecurityEventArgs e) { UserGroup group = new UserGroup(); group.IsNew = true; FormCentralUserGroupEdit FormU = new FormCentralUserGroupEdit(group); FormU.ShowDialog(); if (FormU.DialogResult == DialogResult.OK) { userControlSecurityTabs.FillListUserGroupTabUserGroups(); userControlSecurityTabs.SelectedUserGroup = group; } }
private void butAddGroup_Click(object sender, EventArgs e) { UserGroup group = new UserGroup(); group.IsNew = true; FormCentralUserGroupEdit FormU = new FormCentralUserGroupEdit(group); FormU.ShowDialog(); if (FormU.DialogResult == DialogResult.Cancel) { return; } FillList(); }
private void listGroups_DoubleClick(object sender, EventArgs e) { if (listGroups.SelectedIndex == -1) { return; } UserGroup group = _listUserGroups[listGroups.SelectedIndex]; FormCentralUserGroupEdit FormUGE = new FormCentralUserGroupEdit(group); FormUGE.ShowDialog(); if (FormUGE.DialogResult == DialogResult.Cancel) { return; } FillList(); }