/// <summary> /// Constructor if the object. /// </summary> /// <param name="_type">TREEITEM_TYPE</param> /// <param name="_tag">string</param> /// <param name="_id">string</param> public TreeItem(TREEITEM_TYPE _type, string _tag, string _id) { this.type = _type; this.id = _id; this.Tag = _tag; this.Header = _tag; this.Loaded += new System.Windows.RoutedEventHandler(Load); this.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(DoubleClick); }
/// <summary> /// Overloads the main constructor of the object adding the tooltip. /// </summary> /// <param name="_type">TREEITEM_TYPE</param> /// <param name="_tag">string</param> /// <param name="_tooltip">string</param> /// <param name="_id">string</param> public TreeItem(TREEITEM_TYPE _type, string _tag, string _tooltip, string _id) : this(_type, _tag, _id) { this.ToolTip = _tooltip; }