public void DeleteServer(object sender, EventArgs e) { SnapInContext.Instance.AuthTokenManager.RemoveAuthToken(((AuthTokenDto)Tag).ServerDto.ServerName); ScopeNode parent = this.Parent; if (parent != null) { parent.Children.Remove(this); } NSNotificationCenter.DefaultCenter.PostNotificationName("ReloadOutlineView", parent); }
public ScopeNode ChildAtIndex(int n) { if (this.Children != null && n < NumberOfChildren()) { ScopeNode item = this.Children [n]; return(item); } else { return(null); } }
public OutlineViewDataSource (ScopeNode rootNode) : base () { RootNode = rootNode; }