private void ReloadCertificates() { foreach (NSTableColumn column in LstCertificates.TableColumns()) { LstCertificates.RemoveColumn(column); } LstCertificates.Delegate = new CertTableDelegate(); var listView = new TrustedCertificatesDataSource { Entries = ExternalIdentityProviderDto.SigningCertificates.Certificates }; var columnNames = new List <ColumnOptions> { new ColumnOptions { Id = "SubjectDn", DisplayName = "Subject DN", DisplayOrder = 1, Width = 120 }, new ColumnOptions { Id = "IssuedBy", DisplayName = "Issuer", DisplayOrder = 1, Width = 150 }, new ColumnOptions { Id = "IssuedOn", DisplayName = "Valid From", DisplayOrder = 1, Width = 80 }, new ColumnOptions { Id = "Expiration", DisplayName = "Valid To", DisplayOrder = 1, Width = 80 }, new ColumnOptions { Id = "Fingerprint", DisplayName = "FingerPrint", DisplayOrder = 1, Width = 150 } }; var columns = ListViewHelper.ToNSTableColumns(columnNames); foreach (var column in columns) { LstCertificates.AddColumn(column); } LstCertificates.DataSource = listView; LstCertificates.ReloadData(); }
void ReleaseDesignerOutlets() { if (TxtFriendlyName != null) { TxtFriendlyName.Dispose(); TxtFriendlyName = null; } if (BtnAddCertificate != null) { BtnAddCertificate.Dispose(); BtnAddCertificate = null; } if (BtnAdvanced != null) { BtnAdvanced.Dispose(); BtnAdvanced = null; } if (BtnBack != null) { BtnBack.Dispose(); BtnBack = null; } if (BtnHelpADWindowsIntegrated != null) { BtnHelpADWindowsIntegrated.Dispose(); BtnHelpADWindowsIntegrated = null; } if (BtnHelpCredentials != null) { BtnHelpCredentials.Dispose(); BtnHelpCredentials = null; } if (BtnHelpDomainName != null) { BtnHelpDomainName.Dispose(); BtnHelpDomainName = null; } if (BtnNext != null) { BtnNext.Dispose(); BtnNext = null; } if (BtnPrimaryImport != null) { BtnPrimaryImport.Dispose(); BtnPrimaryImport = null; } if (BtnRemoveCertificate != null) { BtnRemoveCertificate.Dispose(); BtnRemoveCertificate = null; } if (BtnSecondaryImport != null) { BtnSecondaryImport.Dispose(); BtnSecondaryImport = null; } if (BtnTestConnection != null) { BtnTestConnection.Dispose(); BtnTestConnection = null; } if (ChkProtect != null) { ChkProtect.Dispose(); ChkProtect = null; } if (LblPassword != null) { LblPassword.Dispose(); LblPassword = null; } if (LblSpn != null) { LblSpn.Dispose(); LblSpn = null; } if (LblUsername != null) { LblUsername.Dispose(); LblUsername = null; } if (LstCertificates != null) { LstCertificates.Dispose(); LstCertificates = null; } if (PnlProtect != null) { PnlProtect.Dispose(); PnlProtect = null; } if (PnlSpecificDomainController != null) { PnlSpecificDomainController.Dispose(); PnlSpecificDomainController = null; } if (PnlStep1 != null) { PnlStep1.Dispose(); PnlStep1 = null; } if (PnlStep2 != null) { PnlStep2.Dispose(); PnlStep2 = null; } if (PnlStep3 != null) { PnlStep3.Dispose(); PnlStep3 = null; } if (PnlStep4 != null) { PnlStep4.Dispose(); PnlStep4 = null; } if (RdoDomainController != null) { RdoDomainController.Dispose(); RdoDomainController = null; } if (RdoIdentitySource != null) { RdoIdentitySource.Dispose(); RdoIdentitySource = null; } if (RdoSpn != null) { RdoSpn.Dispose(); RdoSpn = null; } if (StepIndicator != null) { StepIndicator.Dispose(); StepIndicator = null; } if (TxtBaseDnGroups != null) { TxtBaseDnGroups.Dispose(); TxtBaseDnGroups = null; } if (TxtBaseDnUser != null) { TxtBaseDnUser.Dispose(); TxtBaseDnUser = null; } if (TxtDomainAlias != null) { TxtDomainAlias.Dispose(); TxtDomainAlias = null; } if (TxtDomainName != null) { TxtDomainName.Dispose(); TxtDomainName = null; } if (TxtGroupbaseDN != null) { TxtGroupbaseDN.Dispose(); TxtGroupbaseDN = null; } if (TxtLdapConnection != null) { TxtLdapConnection.Dispose(); TxtLdapConnection = null; } if (TxtPassword != null) { TxtPassword.Dispose(); TxtPassword = null; } if (TxtPrimaryConnection != null) { TxtPrimaryConnection.Dispose(); TxtPrimaryConnection = null; } if (TxtPrimaryUrl != null) { TxtPrimaryUrl.Dispose(); TxtPrimaryUrl = null; } if (TxtSecondaryConnection != null) { TxtSecondaryConnection.Dispose(); TxtSecondaryConnection = null; } if (TxtSpn != null) { TxtSpn.Dispose(); TxtSpn = null; } if (TxtUpn != null) { TxtUpn.Dispose(); TxtUpn = null; } }
void ReleaseDesignerOutlets() { if (TxtAlias != null) { TxtAlias.Dispose(); TxtAlias = null; } if (BtnAddCertificate != null) { BtnAddCertificate.Dispose(); BtnAddCertificate = null; } if (BtnAddNameIdFormat != null) { BtnAddNameIdFormat.Dispose(); BtnAddNameIdFormat = null; } if (BtnAddSlo != null) { BtnAddSlo.Dispose(); BtnAddSlo = null; } if (BtnAddSso != null) { BtnAddSso.Dispose(); BtnAddSso = null; } if (BtnAddSubjectFormat != null) { BtnAddSubjectFormat.Dispose(); BtnAddSubjectFormat = null; } if (BtnClose != null) { BtnClose.Dispose(); BtnClose = null; } if (BtnRemoveCertificate != null) { BtnRemoveCertificate.Dispose(); BtnRemoveCertificate = null; } if (BtnRemoveNameIdFormat != null) { BtnRemoveNameIdFormat.Dispose(); BtnRemoveNameIdFormat = null; } if (BtnRemoveSlo != null) { BtnRemoveSlo.Dispose(); BtnRemoveSlo = null; } if (BtnRemoveSso != null) { BtnRemoveSso.Dispose(); BtnRemoveSso = null; } if (BtnRemoveSubjectFormat != null) { BtnRemoveSubjectFormat.Dispose(); BtnRemoveSubjectFormat = null; } if (BtnSave != null) { BtnSave.Dispose(); BtnSave = null; } if (BtnViewCertificate != null) { BtnViewCertificate.Dispose(); BtnViewCertificate = null; } if (ChkJit != null) { ChkJit.Dispose(); ChkJit = null; } if (LstCertificates != null) { LstCertificates.Dispose(); LstCertificates = null; } if (LstNameIdFormat != null) { LstNameIdFormat.Dispose(); LstNameIdFormat = null; } if (LstSlo != null) { LstSlo.Dispose(); LstSlo = null; } if (LstSso != null) { LstSso.Dispose(); LstSso = null; } if (LstSubjectFormat != null) { LstSubjectFormat.Dispose(); LstSubjectFormat = null; } if (TxtNameIdFormat != null) { TxtNameIdFormat.Dispose(); TxtNameIdFormat = null; } if (TxtSloBinding != null) { TxtSloBinding.Dispose(); TxtSloBinding = null; } if (TxtSloEndpoint != null) { TxtSloEndpoint.Dispose(); TxtSloEndpoint = null; } if (TxtSloName != null) { TxtSloName.Dispose(); TxtSloName = null; } if (TxtSsoBinding != null) { TxtSsoBinding.Dispose(); TxtSsoBinding = null; } if (TxtSsoEndpoint != null) { TxtSsoEndpoint.Dispose(); TxtSsoEndpoint = null; } if (TxtSsoName != null) { TxtSsoName.Dispose(); TxtSsoName = null; } if (TxtSubjectFormatName != null) { TxtSubjectFormatName.Dispose(); TxtSubjectFormatName = null; } if (TxtSubjectFormatValue != null) { TxtSubjectFormatValue.Dispose(); TxtSubjectFormatValue = null; } if (TxtUniqueId != null) { TxtUniqueId.Dispose(); TxtUniqueId = null; } }
void ReleaseDesignerOutlets() { if (TxtUniqueId != null) { TxtUniqueId.Dispose(); TxtUniqueId = null; } if (ChkJit != null) { ChkJit.Dispose(); ChkJit = null; } if (BtnAddCertificate != null) { BtnAddCertificate.Dispose(); BtnAddCertificate = null; } if (BtnRemoveCertificate != null) { BtnRemoveCertificate.Dispose(); BtnRemoveCertificate = null; } if (LstCertificates != null) { LstCertificates.Dispose(); LstCertificates = null; } if (LstSsoServices != null) { LstSsoServices.Dispose(); LstSsoServices = null; } if (BtnAddSsoService != null) { BtnAddSsoService.Dispose(); BtnAddSsoService = null; } if (BtnRemoveSsoService != null) { BtnRemoveSsoService.Dispose(); BtnRemoveSsoService = null; } if (BtnAddSloService != null) { BtnAddSloService.Dispose(); BtnAddSloService = null; } if (BtnRemoveSloService != null) { BtnRemoveSloService.Dispose(); BtnRemoveSloService = null; } if (LstSloServices != null) { LstSloServices.Dispose(); LstSloServices = null; } if (BtnAddSubjectFormat != null) { BtnAddSubjectFormat.Dispose(); BtnAddSubjectFormat = null; } if (BtnRemoveSubjectFormat != null) { BtnRemoveSubjectFormat.Dispose(); BtnRemoveSubjectFormat = null; } if (LstSubjectFormats != null) { LstSubjectFormats.Dispose(); LstSubjectFormats = null; } if (BtnAddNameIdFormat != null) { BtnAddNameIdFormat.Dispose(); BtnAddNameIdFormat = null; } if (BtnRemoveNameIdFormat != null) { BtnRemoveNameIdFormat.Dispose(); BtnRemoveNameIdFormat = null; } if (LstNameIdFormats != null) { LstNameIdFormats.Dispose(); LstNameIdFormats = null; } if (BtnSave != null) { BtnSave.Dispose(); BtnSave = null; } if (BtnClose != null) { BtnClose.Dispose(); BtnClose = null; } }