示例#1
0
 ///<summary>
 ///Raises the <see cref="ITreeView.BeforeExpand" /> event.
 ///</summary>
 ///<param name="e">A <see cref="TreeViewCancelEventArgs" /> that contains the event data. </param>
 protected override void OnBeforeExpand(TreeViewCancelEventArgs e)
 {
     base.OnBeforeExpand(e);
     if (this.BeforeExpand == null || e.Cancel)
     {
         return;
     }
     Base.TreeViewCancelEventArgs treeViewCancelEventArgs = new Base.TreeViewCancelEventArgs(GetITreeNode(e.Node), e.Cancel, (TreeViewAction)e.Action);
     this.BeforeExpand(this, treeViewCancelEventArgs);
     e.Cancel = treeViewCancelEventArgs.Cancel;
 }
示例#2
0
 ///<summary>
 ///Raises the <see cref="ITreeView.BeforeExpand" /> event.
 ///</summary>
 ///<param name="e">A <see cref="TreeViewCancelEventArgs" /> that contains the event data. </param>
 protected override void OnBeforeExpand(TreeViewCancelEventArgs e)
 {
     base.OnBeforeExpand(e);
     if (this.BeforeExpand == null || e.Cancel) return;
     Base.TreeViewCancelEventArgs treeViewCancelEventArgs = new Base.TreeViewCancelEventArgs(GetITreeNode(e.Node), e.Cancel, (TreeViewAction)e.Action);
     this.BeforeExpand(this, treeViewCancelEventArgs);
     e.Cancel = treeViewCancelEventArgs.Cancel;
 }