public void HandleCreateSigningRequest(object sender, EventArgs e) { NodesListView lw = this.DataSource as NodesListView; UIErrorHelper.CheckedExec(delegate() { ChildScopeNode node = lw.Entries [(int)_selectedRow] as ChildScopeNode; (node as VMCACSRNode).CreateSigningRequest(); }); }
public void HandleCreateSelfSignedCertificate(object sender, EventArgs e) { NodesListView lw = this.DataSource as NodesListView; UIErrorHelper.CheckedExec(delegate() { ChildScopeNode node = lw.Entries [(int)_selectedRow] as ChildScopeNode; (node as VMCAPersonalCertificatesNode).CreateSelfSignedCertificate(); }); }
public void RefreshTableViewsBasedOnSelection(nint row) { UIErrorHelper.CheckedExec(delegate() { if (row >= (nint)0) { NSObject item = splitViewController.MainOutlineView.ItemAtRow((int)row); NSTableView table = splitViewController.MainTableView; RemoveTableColumns(); if (item is VecsPrivateKeysNode) { SearchToolBarItem.Active = true; DisplayRightPanePrivateKeysView(item); } else if (item is VecsSecretKeysNode) { SearchToolBarItem.Active = false; DisplayRightPaneSecretKeysView(item); } else if (item is VecsTrustedCertsNode) { SearchToolBarItem.Active = true; DisplayRightPaneTrustedCertsView(item); } else if (item is ChildScopeNode) { // Display generic childscope nodes with children SearchToolBarItem.Active = false; NSTableColumn col = new NSTableColumn("Name"); col.HeaderCell.Title = "Name"; col.DataCell = new NSBrowserCell(); col.Width = 160; table.AddColumn(col); ChildScopeNode node = item as ChildScopeNode; splitViewController.MainTableView.DataSource = new NodesListView(node.Children, Servernode.ServerDTO); } else if (item is ScopeNode) { //Display root node children SearchToolBarItem.Active = false; NSTableColumn col = new NSTableColumn("Name"); col.HeaderCell.Title = "Name"; col.DataCell = new NSBrowserCell(); col.Width = 160; table.AddColumn(col); ScopeNode node = item as ScopeNode; splitViewController.MainTableView.DataSource = new NodesListView(node.Children, null); } table.ReloadData(); } }); }
public void DisplayRightPaneCertView(NSObject item) { try { PopulateTableColumnsForCertView(); ChildScopeNode node = item as ChildScopeNode; var state = (CertificateState)node.Tag; if ((int)state == -1) { List <PrivateCertificateDTO> privateCerts = Servernode.ServerDTO.PrivateCertificates; splitViewController.MainTableView.DataSource = new PrivateCertsListView(privateCerts, (item as ChildScopeNode).ServerDTO, (int)state); } else { List <X509Certificate2> certList = null; switch ((int)state) { case 0: certList = Servernode.ActiveCertsList; break; case 1: certList = Servernode.RevokedCertsList; break; case 2: certList = Servernode.ExpiredCertsList; break; default: break; } splitViewController.MainTableView.DataSource = new CertificateDetailsListView(certList, (item as ChildScopeNode).ServerDTO, (int)state); } } catch (Exception e) { UIErrorHelper.ShowAlert("", e.Message); } }
public override void SelectionDidChange(NSNotification notification) { nint row = ob.splitViewController.MainOutlineView.SelectedRow; if (row >= (nint)0) { NSObject item = ob.splitViewController.MainOutlineView.ItemAtRow((int)row); NSTableView table = ob.splitViewController.MainTableView; ob.RemoveTableColumns(); if (item is VMCACertsNode || item is VMCAPersonalCertificatesNode) { ob.DisplayRightPaneCertView(item); } else if (item is VMCAKeyPairNode) { ob.DisplayRightPaneKeyPairView(item); } else if (item is VMCACSRNode) { ob.DisplayRightPaneCSRView(item); } else if (item is ChildScopeNode) { NSTableColumn col = new NSTableColumn("Name"); col.HeaderCell.Title = "Name"; col.DataCell = new NSBrowserCell(); col.Width = 150; table.AddColumn(col); ChildScopeNode node = item as ChildScopeNode; ob.splitViewController.MainTableView.DataSource = new NodesListView(node.Children, node.ServerDTO); } table.ReloadData(); } }
public OutlineViewDataSource(ChildScopeNode node) : base() { RootNode = node; }
public OutlineViewDataSource(ChildScopeNode node) : base() { RootNode = node; RootNode.DisplayName = "Certificate Authority"; }