/// <summary> /// Initalises a new instance of ComboTreeBox. /// </summary> public ComboTreeBox() { // default property values nullValue = String.Empty; pathSeparator = @"\"; expandedImageIndex = imageIndex = 0; expandedImageKey = imageKey = String.Empty; // nodes collection nodes = new ComboTreeNodeCollection(null); nodes.CollectionChanged += new NotifyCollectionChangedEventHandler(nodes_CollectionChanged); // dropdown portion dropDown = new ComboTreeDropDown(this); dropDown.Opened += new EventHandler(dropDown_Opened); dropDown.Closed += new ToolStripDropDownClosedEventHandler(dropDown_Closed); dropDown.UpdateVisibleItems(); }
/// <summary> /// Initalises a new instance of ComboTreeBox. /// </summary> public ComboTreeBox() { // default property values nullValue = String.Empty; pathSeparator = @"\"; expandedImageIndex = imageIndex = 0; expandedImageKey = imageKey = String.Empty; // nodes collection nodes = new ComboTreeNodeCollection(null); nodes.CollectionChanged += new NotifyCollectionChangedEventHandler(nodes_CollectionChanged); // dropdown portion dropDown = new ComboTreeDropDown(this); dropDown.Opened += new EventHandler(dropDown_Opened); dropDown.Closed += new ToolStripDropDownClosedEventHandler(dropDown_Closed); dropDown.UpdateVisibleItems(); }
/// <summary> /// Initalises a new instance of ComboTreeBox. /// </summary> public ComboTreeBox() { // default property values _nullValue = String.Empty; _pathSeparator = DEFAULT_PATH_SEPARATOR; _checkedNodeSeparator = DEFAULT_CHECKED_NODE_SEPARATOR; _expandedImageIndex = _imageIndex = 0; _expandedImageKey = _imageKey = String.Empty; _cascadeCheckState = true; _showGlyphs = true; // nodes collection Nodes = new ComboTreeNodeCollection(null); // dropdown portion _dropDown = new ComboTreeDropDown(this); _dropDown.Opened += new EventHandler(dropDown_Opened); _dropDown.Closed += new ToolStripDropDownClosedEventHandler(dropDown_Closed); _dropDown.UpdateVisibleItems(); }
/// <summary> /// Initalises a new instance of ComboTreeBox. /// </summary> public ComboTreeBox() { // default property values _nullValue = String.Empty; _pathSeparator = DEFAULT_PATH_SEPARATOR; _checkedNodeSeparator = DEFAULT_CHECKED_NODE_SEPARATOR; _expandedImageIndex = _imageIndex = 0; _expandedImageKey = _imageKey = String.Empty; _cascadeCheckState = true; // nodes collection _nodes = new ComboTreeNodeCollection(null); _nodes.CollectionChanged += new NotifyCollectionChangedEventHandler(nodes_CollectionChanged); _nodes.AfterCheck += new EventHandler<ComboTreeNodeEventArgs>(nodes_AfterCheck); // dropdown portion _dropDown = new ComboTreeDropDown(this); _dropDown.Opened += new EventHandler(dropDown_Opened); _dropDown.Closed += new ToolStripDropDownClosedEventHandler(dropDown_Closed); _dropDown.UpdateVisibleItems(); }