Пример #1
0
 protected virtual void OnNodeExpanded(ExpandedEventArgs e)
 {
     if (this.NodeExpanded != null)
     {
         this.NodeExpanded(this, e);
     }
 }
Пример #2
0
 protected internal virtual bool ExpandNode(TreeGridNode node)
 {
     if (!node.IsExpanded || this._virtualNodes)
     {
         ExpandingEventArgs e = new ExpandingEventArgs(node);
         this.OnNodeExpanding(e);
         if (!e.Cancel)
         {
             this.LockVerticalScrollBarUpdate(true);
             base.SuspendLayout();
             this._inExpandCollapse = true;
             node.IsExpanded        = true;
             foreach (TreeGridNode node2 in node.Nodes)
             {
                 this.SiteNode(node2);
             }
             ExpandedEventArgs args2 = new ExpandedEventArgs(node);
             this.OnNodeExpanded(args2);
             this._inExpandCollapse = false;
             this.LockVerticalScrollBarUpdate(false);
             base.ResumeLayout(true);
         }
         return(!e.Cancel);
     }
     return(false);
 }