private void _parent_Apply(object sender, CancelEventArgs e) { _providerDto.UserMachineAccount = rdoMachineAccount.Checked; if (!_providerDto.UserMachineAccount) { _providerDto.Username = txtADUsername.Text; _providerDto.Password = txtADPassword.Text; _providerDto.ServicePrincipalName = txtADSpn.Text; } e.Cancel = !_dataManager.Apply(_providerDto); }
void _parent_Apply(object sender, CancelEventArgs e) { _userDto.Role = (UserRole)cboRole.SelectedIndex; _userDto.ActAsUsers = chkActAsUser.Checked; _userDto.IsIdpAdmin = chkIDPAdmin.Checked; var success = _dataManager.Apply(_userDto); e.Cancel = !success; if (success) { BindControls(); } }
private void _parent_Apply(object sender, CancelEventArgs e) { if (IsValid()) { _providerDto.Name = txtDomainName.Text; _providerDto.Alias = txtDomainAlias.Text; _providerDto.UserBaseDN = txtUserBaseDN.Text; _providerDto.GroupBaseDN = txtGroupBaseDN.Text; _providerDto.ConnectionStrings[0] = txtPrimaryURL.Text; if (_providerDto.ConnectionStrings.Count > 1) { _providerDto.ConnectionStrings[1] = txtSecondaryUrl.Text; } else { _providerDto.ConnectionStrings.Add(txtSecondaryUrl.Text); } _providerDto.SiteAffinityEnabled = cbSiteAffinity.Checked; _providerDto.BaseDnForNestedGroupsEnabled = cbDNForNestedGroups.Checked; _providerDto.DirectGroupsSearchEnabled = cbGroupSearch.Checked; _providerDto.MatchingRuleInChainEnabled = cbMatchRuleInChain.Checked; e.Cancel = !_dataManager.Apply(_providerDto); } }
private void btnAdd_Click(object sender, EventArgs e) { _dataMgr.Apply(GetSelectedGroups()); DialogResult = DialogResult.OK; }
void _parent_Apply(object sender, CancelEventArgs e) { _userDto.Description = txtDescription.Text; _userDto.Disabled = chkDisabled.Checked; e.Cancel = !_dataManager.Apply(_userDto); }
void _parent_Apply(object sender, CancelEventArgs e) { _providerDto.AuthenticationType = "PASSWORD"; _providerDto.Username = txtUserName.Text; e.Cancel = !_dataManager.Apply(_providerDto); }
void _parent_Apply(object sender, CancelEventArgs e) { _dataManager.Apply(_userDto); }