Added the source code of Aga.Controls (TreeViewAdv for .Net) version 1.7.0.0.
2 using System.Collections.Generic;
4 using System.ComponentModel;
6 namespace Aga.Controls.Tree.NodeControls
8 public abstract class InteractiveControl : BindableControl
10 private bool _editEnabled = false;
12 public bool EditEnabled
14 get { return _editEnabled; }
15 set { _editEnabled = value; }
18 protected bool IsEditEnabled(TreeNodeAdv node)
22 NodeControlValueEventArgs args = new NodeControlValueEventArgs(node);
24 OnIsEditEnabledValueNeeded(args);
25 return Convert.ToBoolean(args.Value);
31 public event EventHandler<NodeControlValueEventArgs> IsEditEnabledValueNeeded;
32 private void OnIsEditEnabledValueNeeded(NodeControlValueEventArgs args)
34 if (IsEditEnabledValueNeeded != null)
35 IsEditEnabledValueNeeded(this, args);