Habanero.Faces.Win.TreeViewWin.OnBeforeExpand C# (CSharp) Method

OnBeforeExpand() protected method

Raises the ITreeView.BeforeExpand event.
protected OnBeforeExpand ( System.Windows.Forms.TreeViewCancelEventArgs e ) : void
e System.Windows.Forms.TreeViewCancelEventArgs A that contains the event data.
return void
        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;
        }