public SolutionUserGeneralProperty(IPropertyDataManager dataManager) { _dataManager = dataManager; _userDto = dataManager.GetData() as SolutionUserDto; InitializeComponent(); PropertyPageInit(); }
void BindControls() { _userDto = _dataManager.GetData() as UserDto; if (_userDto != null) { cboRole.SelectedIndex = (int)_userDto.Role; chkActAsUser.Checked = _userDto.ActAsUsers; chkIDPAdmin.Checked = _userDto.IsIdpAdmin; } }
void BindDataAllGroups() { var groups = _dataMgr.GetData() as IList <GroupDto>; lstParentGroups.Items.Clear(); if (groups != null) { foreach (var group in groups) { var item = new ListViewItem(@group.GroupName) { Tag = @group, ImageIndex = (int)TreeImageIndex.Group }; lstParentGroups.Items.Add(item); } } }
void BindControls() { _userDto = _dataManager.GetData() as UserDto; if (_userDto != null) { lblUserName.Text = string.Format("{0}@{1}", _userDto.Name, _userDto.Domain); if (_userDto.PasswordDetails != null) { lblPasswordLastSetOn.Text = DateTimeHelper.UnixToWindows((long)_userDto.PasswordDetails.LastSet).ToString("dd-MMM-yyyy hh:mm:ss"); lblDaysUntilPasswordExpiry.Text = SecondsToDaysAndHours(_userDto.PasswordDetails.Lifetime); } txtFirstName.Text = _userDto.PersonDetails.FirstName; txtLastName.Text = _userDto.PersonDetails.LastName; txtEmail.Text = _userDto.PersonDetails.EmailAddress; txtDescription.Text = _userDto.PersonDetails.Description; chkDisabled.CheckState = _userDto.Disabled ? CheckState.Checked : CheckState.Unchecked; } }
void BindControls() { _groupsDto = _dataManager.GetData() as List <GroupDto>; FillList(); }