예제 #1
0
        protected sealed override void OnBeforeSelect(MultiSelectTreeViewCancelEventArgs e)
        {
            VirtualTreeNode node = (VirtualTreeNode)e.Node;
            VirtualTreeViewCancelEventArgs args = new VirtualTreeViewCancelEventArgs(node, e.Cancel, e.Action);

            OnBeforeSelect(args);
            e.Cancel = args.Cancel;
        }
예제 #2
0
        protected virtual void OnBeforeSelect(VirtualTreeViewCancelEventArgs e)
        {
            EventHandler <VirtualTreeViewCancelEventArgs> handler = BeforeSelect;

            if (handler != null)
            {
                handler(this, e);
            }
        }
예제 #3
0
 protected override void OnBeforeCollapse(VirtualTreeViewCancelEventArgs e)
 {
     if (!expandOnDoubleClick && blockExpansion)
     {
         blockExpansion = false;
         e.Cancel = true;
         return;
     }
     base.OnBeforeCollapse(e);
 }
예제 #4
0
 protected override void OnBeforeCollapse(VirtualTreeViewCancelEventArgs e)
 {
     if (!expandOnDoubleClick && blockExpansion)
     {
         blockExpansion = false;
         e.Cancel       = true;
         return;
     }
     base.OnBeforeCollapse(e);
 }
예제 #5
0
        protected sealed override void OnBeforeExpand(TreeViewCancelEventArgs e)
        {
            VirtualTreeNode node = (VirtualTreeNode)e.Node;

            Devirtualise(node.Nodes);
            VirtualTreeViewCancelEventArgs args = new VirtualTreeViewCancelEventArgs(node, e.Cancel, e.Action);

            OnBeforeExpand(args);
            e.Cancel = args.Cancel;
        }
예제 #6
0
        protected override void OnBeforeExpand(VirtualTreeViewCancelEventArgs e)
        {
            if (TopNode == null)
            {
                _persistedTopNode = new List <object>();
            }
            else
            {
                _persistedTopNode = TopNode.GetPersistenceInfo().Path;
            }

            base.OnBeforeExpand(e);
        }
예제 #7
0
 protected override void OnBeforeExpand(VirtualTreeViewCancelEventArgs e)
 {
     if (TopNode == null)
     {
         _persistedTopNode = new List<object>();
     }
     else
     {
         _persistedTopNode = TopNode.GetPersistenceInfo().Path;
     }
     
     base.OnBeforeExpand(e);
 }
예제 #8
0
        protected virtual void OnBeforeSelect(VirtualTreeViewCancelEventArgs e)
        {
            EventHandler<VirtualTreeViewCancelEventArgs> handler = BeforeSelect;

            if (handler != null)
            {
                handler(this, e);
            }
        }
예제 #9
0
 protected sealed override void OnBeforeSelect(MultiSelectTreeViewCancelEventArgs e)
 {
     VirtualTreeNode node = (VirtualTreeNode)e.Node;
     VirtualTreeViewCancelEventArgs args = new VirtualTreeViewCancelEventArgs(node, e.Cancel, e.Action);
     OnBeforeSelect(args);
     e.Cancel = args.Cancel;
 }
예제 #10
0
 protected sealed override void OnBeforeExpand(TreeViewCancelEventArgs e)
 {
     VirtualTreeNode node = (VirtualTreeNode)e.Node;
     Devirtualise(node.Nodes);
     VirtualTreeViewCancelEventArgs args = new VirtualTreeViewCancelEventArgs(node, e.Cancel, e.Action);
     OnBeforeExpand(args);
     e.Cancel = args.Cancel;
 }