示例#1
0
        ///<summary>Edit user button.</summary>
        private void userControlSecurityTabs_EditUserClick(object sender, SecurityEventArgs e)
        {
            FormCentralUserEdit FormCUE = new FormCentralUserEdit(e.User);

            FormCUE.ShowDialog();
            if (FormCUE.DialogResult == DialogResult.OK)
            {
                userControlSecurityTabs.FillUserTabUsers();
                userControlSecurityTabs.RefreshUserTabGroups();
            }
        }
示例#2
0
        ///<summary>Add user button.</summary>
        private void userControlSecurityTabs_AddUserClick(object sender, SecurityEventArgs e)
        {
            Userod user = new Userod();

            user.IsNew = true;
            FormCentralUserEdit FormCU = new FormCentralUserEdit(user);

            FormCU.ShowDialog();
            if (FormCU.DialogResult == DialogResult.OK)             //update to reflect changes that were made in FormUserEdit.
            {
                userControlSecurityTabs.FillUserTabUsers();
                userControlSecurityTabs.RefreshUserTabGroups();
                userControlSecurityTabs.SelectedUser = FormCU.UserCur;               //select the user that was just added.
            }
        }
示例#3
0
        ///<summary>Add user button.</summary>
        private void userControlSecurityTabs_AddUserClick(object sender, SecurityEventArgs e)
        {
            Userod user = new Userod();

            user.IsNew = true;
            FormCentralUserEdit FormCU = new FormCentralUserEdit(user);

            FormCU.ShowDialog();
            if (FormCU.DialogResult == DialogResult.OK)                //update to reflect changes that were made in FormUserEdit.
            {
                userControlSecurityTabs.FillGridUsers();               //New user is not in grid yet, add them.
                userControlSecurityTabs.SelectedUser = FormCU.UserCur; //Selects the user that was just added in the grid.
                userControlSecurityTabs.RefreshUserTabGroups();        //Previously selected users User Groups are still selected, refresh for UserCur.
            }
        }
示例#4
0
		private void butAddUser_Click(object sender,EventArgs e) {
			Userod user=new Userod();
			user.UserGroupNum=_selectedGroupNum;
			user.IsNew=true;
			FormCentralUserEdit FormCU=new FormCentralUserEdit(user);
			FormCU.ShowDialog();
			if(FormCU.DialogResult==DialogResult.Cancel){
				return;
			}
			FillUsers();
			FillTreePerm();
		}
示例#5
0
		private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			Userod user=Userods.GetUser(_listCEMTUsers[e.Row].UserNum);
			FormCentralUserEdit FormU=new FormCentralUserEdit(user);
			FormU.ShowDialog();
			if(FormU.DialogResult==DialogResult.Cancel) {
				return;
			}
			FillUsers();
			for(int i=0;i<_listCEMTUsers.Count;i++) {
				if(_listCEMTUsers[i].UserNum==FormU._userCur.UserNum) {
					gridMain.SetSelected(i,true);
					_selectedGroupNum=FormU._userCur.UserGroupNum;
					break;
				}
			}
			FillTreePerm();
		}