Exemple #1
0
 public virtual void Collapse()
 {
     if (this.m_bExpanded)
     {
         int index = this.ParentCollection.IndexOf(this);
         NodeCancelEventArgs oParam = new NodeCancelEventArgs(this, index, 0);
         this.OnNodeChanged(NodeEventArgsType.BeforeCollapse, oParam);
         if (!oParam.Cancel)
         {
             this.m_bExpanded         = false;
             this.Nodes.LastDrawnNode = 0;
             NodeEventArgs args2 = new NodeEventArgs(this, index, 0);
             this.OnNodeChanged(NodeEventArgsType.AfterCollapse, args2);
         }
     }
 }
Exemple #2
0
 public virtual void Expand()
 {
     if (!this.m_bExpanded)
     {
         int index = this.ParentCollection.IndexOf(this);
         NodeCancelEventArgs oParam = new NodeCancelEventArgs(this, index, 0);
         this.OnNodeChanged(NodeEventArgsType.BeforeExpand, oParam);
         if (!oParam.Cancel)
         {
             this.m_bExpanded = true;
             if ((this.ParentCollection.AdvancedTree != null) && this.ParentCollection.AdvancedTree.DelayLoad)
             {
                 this.DoDelayLoad();
             }
             NodeEventArgs args2 = new NodeEventArgs(this, index, 0);
             this.OnNodeChanged(NodeEventArgsType.AfterExpand, args2);
         }
     }
 }
Exemple #3
0
 public virtual void Expand()
 {
     if (!this.m_bExpanded)
     {
         int index = this.ParentCollection.IndexOf(this);
         NodeCancelEventArgs oParam = new NodeCancelEventArgs(this, index, 0);
         this.OnNodeChanged(NodeEventArgsType.BeforeExpand, oParam);
         if (!oParam.Cancel)
         {
             this.m_bExpanded = true;
             if ((this.ParentCollection.AdvancedTree != null) && this.ParentCollection.AdvancedTree.DelayLoad)
             {
                 this.DoDelayLoad();
             }
             NodeEventArgs args2 = new NodeEventArgs(this, index, 0);
             this.OnNodeChanged(NodeEventArgsType.AfterExpand, args2);
         }
     }
 }
Exemple #4
0
 public virtual void Collapse()
 {
     if (this.m_bExpanded)
     {
         int index = this.ParentCollection.IndexOf(this);
         NodeCancelEventArgs oParam = new NodeCancelEventArgs(this, index, 0);
         this.OnNodeChanged(NodeEventArgsType.BeforeCollapse, oParam);
         if (!oParam.Cancel)
         {
             this.m_bExpanded = false;
             this.Nodes.LastDrawnNode = 0;
             NodeEventArgs args2 = new NodeEventArgs(this, index, 0);
             this.OnNodeChanged(NodeEventArgsType.AfterCollapse, args2);
         }
     }
 }