예제 #1
0
        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);
        }
예제 #2
0
 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;
		}