public TriStateTreeNode(TreeNode cloneBase) : base() { _nodes = new TriStateTreeNodeCollection(base.Nodes); this.Name = cloneBase.Name; this.Text = cloneBase.Text; this.Checked = cloneBase.Checked; }
public TriStateTreeNode(string text) : base(text) { _nodes = new TriStateTreeNodeCollection(base.Nodes); this.Name = text; this.Text = text; this.Checked = false; }
public TriStateTreeNode(string text, string name) : base() { _nodes = new TriStateTreeNodeCollection(base.Nodes); if (name != null) { this.Name = name; } this.Text = text; this.Checked = false; }
public TriStateTreeNode(TriStateTreeNode cloneBase) : base() { _nodes = new TriStateTreeNodeCollection(base.Nodes); this.Name = cloneBase.Name; this.Text = cloneBase.Text; this.Checked = cloneBase.Checked; foreach (String key in cloneBase.RelativeObject.Keys) { this.RelativeObject[key] = cloneBase.RelativeObject[key]; } }
public TriStateTreeNode(string text, String relObjName = null, Object relObj = null) : base(text) { _nodes = new TriStateTreeNodeCollection(base.Nodes); if (this.Name != null || this.Name.Length == 0) { this.Name = text; } this.Checked = false; if (relObjName != null && relObj != null) { _relativeObject[relObjName] = relObj; } }
public RtwTreeView() : base() { //this.NodeMouseClick += new TreeNodeMouseClickEventHandler(treeView1_NodeMouseClick); //this.NodeMouseDoubleClick += new TreeNodeMouseClickEventHandler(RtwTreeView_NodeMouseDoubleClick); //this.BeforeCheck += new TreeViewCancelEventHandler(RtwTreeView_BeforeCheck); //this.AfterCheck += new TreeViewEventHandler(RtwTreeView_AfterCheck); //this.BeforeExpand += new TreeViewCancelEventHandler(RtwTreeView_BeforeExpand); //this.BeforeCollapse += new TreeViewCancelEventHandler(RtwTreeView_BeforeCollapse); //this.CheckBoxes = true; this.ShowPlusMinus = false; this.ShowLines = false; this.ShowRootLines = false; ImageList list = new ImageList(); list.Images.AddRange(new Image[] { Properties.Resources.rtw_tree_normal, Properties.Resources.rtw_open_tree, Properties.Resources.rtw_tree_selected }); this.ImageList = list; list = new ImageList(); list.Images.AddRange(new Image[] { Properties.Resources.check_normal, Properties.Resources.check_red, Properties.Resources.check_inter }); this.StateImageList = list; list = new ImageList(); list.Images.AddRange(new Image[] { Properties.Resources.check_normal_press, Properties.Resources.check_red_press, Properties.Resources.check_inter_press }); this.DisabledStateImageList = list; //this.ImageIndex = 0; //this.SelectedImageIndex = 0; //this.SelectedImageIndex = 2; _nodes = new TriStateTreeNodeCollection(base.Nodes, this); }