Exemplo n.º 1
0
        protected sealed override void OnBeforeLabelEdit(NodeLabelEditEventArgs e)
        {
            VirtualTreeNode node = (VirtualTreeNode)e.Node;
            VirtualNodeLabelEditEventArgs args = new VirtualNodeLabelEditEventArgs(node, e.Label);

            OnBeforeLabelEdit(args);
            e.CancelEdit = args.CancelEdit;
        }
Exemplo n.º 2
0
        protected virtual void OnAfterLabelEdit(VirtualNodeLabelEditEventArgs e)
        {
            EventHandler <VirtualNodeLabelEditEventArgs> handler = AfterLabelEdit;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemplo n.º 3
0
        protected virtual void OnAfterLabelEdit(VirtualNodeLabelEditEventArgs e)
        {
            EventHandler<VirtualNodeLabelEditEventArgs> handler = AfterLabelEdit;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemplo n.º 4
0
 protected sealed override void OnBeforeLabelEdit(NodeLabelEditEventArgs e)
 {
     VirtualTreeNode node = (VirtualTreeNode)e.Node;
     VirtualNodeLabelEditEventArgs args = new VirtualNodeLabelEditEventArgs(node, e.Label);
     OnBeforeLabelEdit(args);
     e.CancelEdit = args.CancelEdit;
 }