Beispiel #1
0
        ///<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();
            }
        }
Beispiel #2
0
		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();
		}
Beispiel #3
0
		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();
		}
Beispiel #4
0
        ///<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;
            }
        }
Beispiel #5
0
        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();
        }
Beispiel #6
0
        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();
        }