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; }
protected virtual void OnBeforeSelect(VirtualTreeViewCancelEventArgs e) { EventHandler <VirtualTreeViewCancelEventArgs> handler = BeforeSelect; if (handler != null) { handler(this, e); } }
protected override void OnBeforeCollapse(VirtualTreeViewCancelEventArgs e) { if (!expandOnDoubleClick && blockExpansion) { blockExpansion = false; e.Cancel = true; return; } base.OnBeforeCollapse(e); }
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; }
protected override void OnBeforeExpand(VirtualTreeViewCancelEventArgs e) { if (TopNode == null) { _persistedTopNode = new List <object>(); } else { _persistedTopNode = TopNode.GetPersistenceInfo().Path; } base.OnBeforeExpand(e); }
protected override void OnBeforeExpand(VirtualTreeViewCancelEventArgs e) { if (TopNode == null) { _persistedTopNode = new List<object>(); } else { _persistedTopNode = TopNode.GetPersistenceInfo().Path; } base.OnBeforeExpand(e); }
protected virtual void OnBeforeSelect(VirtualTreeViewCancelEventArgs e) { EventHandler<VirtualTreeViewCancelEventArgs> handler = BeforeSelect; if (handler != null) { handler(this, e); } }