Example #1
0
        private void InitializeSloServices()
        {
            foreach (NSTableColumn column in SloTableView.TableColumns())
            {
                SloTableView.RemoveColumn(column);
            }
            SloTableView.Delegate = new TableDelegate();
            var listView = new AssertionConsumerServiceDataSource {
                Entries = RelyingPartyDto.AssertionConsumerServices
            };
            var columnNames = new List <ColumnOptions> {
                new ColumnOptions {
                    Id = "Name", DisplayName = "Name", DisplayOrder = 1, Width = 80
                },
                new ColumnOptions {
                    Id = "Endpoint", DisplayName = "Endpoint", DisplayOrder = 4, Width = 150
                },
                new ColumnOptions {
                    Id = "Binding", DisplayName = "Binding", DisplayOrder = 5, Width = 150
                }
            };
            var columns = ListViewHelper.ToNSTableColumns(columnNames);

            foreach (var column in columns)
            {
                SloTableView.AddColumn(column);
            }
            SloTableView.DataSource = listView;
            SloTableView.ReloadData();
        }
        private void InitializeSloServices()
        {
            foreach (NSTableColumn column in SloTableView.TableColumns())
            {
                SloTableView.RemoveColumn(column);
            }
            SloTableView.Delegate = new TableDelegate();
            var listView = new ServiceEndpointDataSource {
                Entries = ExternalIdentityProviderDto.SloServices
            };
            var columnNames = new List <ColumnOptions> {
                new ColumnOptions {
                    Id = "Name", DisplayName = "Name", DisplayOrder = 1, Width = 150
                },
                new ColumnOptions {
                    Id = "Endpoint", DisplayName = "Endpoint", DisplayOrder = 4, Width = 200
                },
                new ColumnOptions {
                    Id = "Binding", DisplayName = "Binding", DisplayOrder = 5, Width = 200
                }
            };
            var columns = ListViewHelper.ToNSTableColumns(columnNames);

            foreach (var column in columns)
            {
                SloTableView.AddColumn(column);
            }
            SloTableView.DataSource = listView;
            SloTableView.ReloadData();
        }
        void ReleaseDesignerOutlets()
        {
            if (TxtAlias != null)
            {
                TxtAlias.Dispose();
                TxtAlias = null;
            }

            if (BtnJit != null)
            {
                BtnJit.Dispose();
                BtnJit = null;
            }

            if (BtnViewCertificate != null)
            {
                BtnViewCertificate.Dispose();
                BtnViewCertificate = null;
            }

            if (CertificateTableView != null)
            {
                CertificateTableView.Dispose();
                CertificateTableView = null;
            }

            if (NameFormatTableView != null)
            {
                NameFormatTableView.Dispose();
                NameFormatTableView = null;
            }

            if (SloTableView != null)
            {
                SloTableView.Dispose();
                SloTableView = null;
            }

            if (SsoTableView != null)
            {
                SsoTableView.Dispose();
                SsoTableView = null;
            }

            if (SubjectFormatTableView != null)
            {
                SubjectFormatTableView.Dispose();
                SubjectFormatTableView = null;
            }

            if (TxtEntityName != null)
            {
                TxtEntityName.Dispose();
                TxtEntityName = null;
            }
        }
Example #4
0
 public void OnRemoveSloServices(object sender, EventArgs e)
 {
     if (SloTableView.SelectedRows != null && SloTableView.SelectedRows.Count > 0)
     {
         foreach (var row in SloTableView.SelectedRows)
         {
             RelyingPartyDto.SingleLogoutServices.RemoveAt((int)row);
         }
         var datasource = new ServiceEndpointDataSource {
             Entries = RelyingPartyDto.SingleLogoutServices
         };
         SloTableView.DataSource = datasource;
         SloTableView.ReloadData();
     }
 }
Example #5
0
        public void OnAddSloServices(object sender, EventArgs e)
        {
            NSApplication.SharedApplication.StopModal();
            var form = new AddNewServiceEndpointController();

            NSApplication.SharedApplication.RunModalForWindow(form.Window);
            if (form.ServiceEndpointDto != null)
            {
                RelyingPartyDto.SingleLogoutServices.Add(form.ServiceEndpointDto);
                var datasource = new ServiceEndpointDataSource {
                    Entries = RelyingPartyDto.SingleLogoutServices
                };
                SloTableView.DataSource = datasource;
                SloTableView.ReloadData();
            }
        }
Example #6
0
 public void OnSloUpdate(object sender, EventArgs e)
 {
     if (SloTableView.SelectedRows != null && (int)SloTableView.SelectedRows.Count > -1)
     {
         var row = (int)SloTableView.SelectedRows.FirstIndex;
         var dto = RelyingPartyDto.SingleLogoutServices [row];
         NSApplication.SharedApplication.StopModal();
         var form = new AddNewServiceEndpointController()
         {
             ServiceEndpointDto = dto
         };
         NSApplication.SharedApplication.RunModalForWindow(form.Window);
         if (form.IsUpdated != null)
         {
             RelyingPartyDto.SingleLogoutServices.RemoveAt(row);
             RelyingPartyDto.SingleLogoutServices.Add(form.ServiceEndpointDto);
             var datasource = new ServiceEndpointDataSource {
                 Entries = RelyingPartyDto.SingleLogoutServices
             };
             SloTableView.DataSource = datasource;
             SloTableView.ReloadData();
         }
     }
 }
Example #7
0
        void ReleaseDesignerOutlets()
        {
            if (BtnAddAssertServices != null)
            {
                BtnAddAssertServices.Dispose();
                BtnAddAssertServices = null;
            }

            if (BtnAddAttributeServices != null)
            {
                BtnAddAttributeServices.Dispose();
                BtnAddAttributeServices = null;
            }

            if (BtnAddSignatureAlgorithm != null)
            {
                BtnAddSignatureAlgorithm.Dispose();
                BtnAddSignatureAlgorithm = null;
            }

            if (BtnAddSlo != null)
            {
                BtnAddSlo.Dispose();
                BtnAddSlo = null;
            }

            if (AssertionTableView != null)
            {
                AssertionTableView.Dispose();
                AssertionTableView = null;
            }

            if (AttributeTableView != null)
            {
                AttributeTableView.Dispose();
                AttributeTableView = null;
            }

            if (BtnBrowseCertificate != null)
            {
                BtnBrowseCertificate.Dispose();
                BtnBrowseCertificate = null;
            }

            if (SloTableView != null)
            {
                SloTableView.Dispose();
                SloTableView = null;
            }

            if (BtnClose != null)
            {
                BtnClose.Dispose();
                BtnClose = null;
            }

            if (BtnRemoveAssertServices != null)
            {
                BtnRemoveAssertServices.Dispose();
                BtnRemoveAssertServices = null;
            }

            if (BtnRemoveAttributeServices != null)
            {
                BtnRemoveAttributeServices.Dispose();
                BtnRemoveAttributeServices = null;
            }

            if (BtnRemoveSignatureAlgorithm != null)
            {
                BtnRemoveSignatureAlgorithm.Dispose();
                BtnRemoveSignatureAlgorithm = null;
            }

            if (BtnRemoveSlo != null)
            {
                BtnRemoveSlo.Dispose();
                BtnRemoveSlo = null;
            }

            if (BtnSave != null)
            {
                BtnSave.Dispose();
                BtnSave = null;
            }

            if (CbSignAuthRequest != null)
            {
                CbSignAuthRequest.Dispose();
                CbSignAuthRequest = null;
            }

            if (SignAlgoTableView != null)
            {
                SignAlgoTableView.Dispose();
                SignAlgoTableView = null;
            }

            if (TxtCertificate != null)
            {
                TxtCertificate.Dispose();
                TxtCertificate = null;
            }

            if (TxtName != null)
            {
                TxtName.Dispose();
                TxtName = null;
            }

            if (TxtUrl != null)
            {
                TxtUrl.Dispose();
                TxtUrl = null;
            }
        }