public VecsStoreNode(VMCertStoreServerNode node, string storeName, ScopeNode parent) : base(node) { DisplayName = storeName; StoreName = storeName; Parent = parent; AddChildren(); }
public VecsStoreNode (VMCertStoreServerNode node, string storeName, ScopeNode parent) : base (node) { DisplayName = storeName; StoreName = storeName; Parent = parent; AddChildren (); }
async void AddServer() { try { var ServerDTO = VMCertStoreServerDTO.CreateInstance(); ServerDTO.Server = ""; var node = new VMCertStoreServerNode(ServerDTO); await node.DoLogin(); if (node.ServerDTO.IsLoggedIn) { VMCertStoreSnapInEnvironment.Instance.LocalData.AddServer(node.ServerDTO); this.Children.Add(node); } } catch (Exception e) { MMCDlgHelper.ShowException(e); } }
public VecsTrustedCertsNode(VMCertStoreServerNode node, string storeName) : base(node, storeName) { DisplayName = "Trusted Certs"; this.Tag = storeName; }
public ServerInfoPopOverController (VMCertStoreServerNode node) : base ("ServerInfoPopOver", NSBundle.MainBundle) { this.serverNode = node; if (serverNode.IsDetailsLoaded == false) serverNode.FillServerInfo (); }
public ChildScopeNode(VMCertStoreServerNode node) { this.ServerNode = node; }
public ChildScopeNode (VMCertStoreServerNode node) { this.ServerNode = node; }
public async void ConnectToServer (string server) { var serverDTO = VMCertStoreServerDTO.CreateInstance (); Servernode = new VMCertStoreServerNode (serverDTO); ProgressWindowController pwc = new ProgressWindowController (); IntPtr session = new IntPtr (0); LoginWindowController lwc = new LoginWindowController (server); NSApplication.SharedApplication.BeginSheet (lwc.Window, this.Window, () => { }); nint result = NSApplication.SharedApplication.RunModalForWindow (lwc.Window); try { if (result == (nint)VMIdentityConstants.DIALOGOK) { Servernode.ServerDTO.Server = lwc.Server; NSApplication.SharedApplication.BeginSheet (pwc.Window, this.Window as NSWindow, () => { }); session = NSApplication.SharedApplication.BeginModalSession (pwc.Window); await Servernode.ServerDTO.LogintoServer (lwc.UserName, lwc.Password, lwc.DomainName); if (Servernode.ServerDTO.IsLoggedIn == true) { InitialiseViews (); NSNotificationCenter.DefaultCenter.PostNotificationName ("ReloadOutlineView", this); Task.Run (() => Servernode.FillServerInfo ()); } else UIErrorHelper.ShowAlert ("Please check the login details or the user permissions.", "Unable to Login"); } } catch (Exception e) { UIErrorHelper.ShowAlert ("", e.Message); } finally { if (pwc.ProgressBar != null) { pwc.ProgressBar.StopAnimation (pwc.Window); pwc.Window.Close (); NSApplication.SharedApplication.EndModalSession (session); } Window.EndSheet (lwc.Window); lwc.Dispose (); } }
public VecsPrivateKeysNode(VMCertStoreServerNode node, string storeName) : base(node, storeName) { DisplayName = "Private Entities"; this.Tag = storeName; }
public VecsStoresNode(VMCertStoreServerNode serverNode) : base(serverNode) { DisplayName = "Vecs Stores"; RefreshStores(); }
void AddServerNode(VMCertStoreServerDTO dto) { var node = new VMCertStoreServerNode(dto); this.Children.Add(node); }
public VecsStoreEntriesNode(VMCertStoreServerNode node, string storeName) : base(node) { StoreName = storeName; }
public VecsStoreEntriesNode (VMCertStoreServerNode node, string storeName) : base (node) { StoreName = storeName; }
public VecsTrustedCertsNode (VMCertStoreServerNode node, string storeName) : base (node, storeName) { DisplayName = "Trusted Certs"; this.Tag = storeName; }
public VecsSecretKeysNode(VMCertStoreServerNode node, string storeName) : base(node, storeName) { DisplayName = "Secret Keys"; this.Tag = storeName; }
public VecsPrivateKeysNode (VMCertStoreServerNode node, string storeName) : base (node, storeName) { DisplayName = "Private Entities"; this.Tag = storeName; }
public VecsSecretKeysNode (VMCertStoreServerNode node, string storeName) : base (node, storeName) { DisplayName = "Secret Keys"; this.Tag = storeName; }
public VecsStoresNode (VMCertStoreServerNode serverNode) : base (serverNode) { DisplayName = "Vecs Stores"; RefreshStores (); }