Пример #1
0
        private void InitializeSignatureAlgorithm()
        {
            //_signatureAlgorithmView = new NSTableView ();
            foreach (NSTableColumn column in SignAlgoTableView.TableColumns())
            {
                SignAlgoTableView.RemoveColumn(column);
            }
            SignAlgoTableView.Delegate = new TableDelegate();
            //this.LstSignatureAlgorithm.AddSubview (_signatureAlgorithmView);
            var listView = new SignatureAlgorithmDataSource {
                Entries = RelyingPartyDto.SignatureAlgorithms
            };
            var columnNames = new List <ColumnOptions> {
                new ColumnOptions {
                    Id = "MaxKeySize", DisplayName = "Max Key Size", DisplayOrder = 1, Width = 80
                },
                new ColumnOptions {
                    Id = "MinKeySize", DisplayName = "Min Key Size", DisplayOrder = 2, Width = 80
                },
                new ColumnOptions {
                    Id = "Priority", DisplayName = "Priority", DisplayOrder = 3, Width = 80
                }
            };
            var columns = ListViewHelper.ToNSTableColumns(columnNames);

            foreach (var column in columns)
            {
                SignAlgoTableView.AddColumn(column);
            }
            SignAlgoTableView.DataSource = listView;
            SignAlgoTableView.ReloadData();
        }