public TreeViewNode( TreeView _treeView, string _strText, object _tag ) : this(_treeView, _strText, null, _tag) { }
//---------------------------------------------------------------------- public TreeViewNode( TreeView _treeView, string _strText, Texture2D _icon = null, object _tag = null ) : base(_treeView.Screen) { mTreeView = _treeView; Indicators = new List<TreeViewIndicator>(); Children = new ObservableList<TreeViewNode>(); Children.ListChanged += OnChildrenListChanged; Children.ListCleared += OnChildrenListCleared; mstrText = _strText; mLabel = new Label( Screen, _strText, Anchor.Start, Screen.Style.DefaultTextColor ); mImage = new Image( Screen ); mImage.Padding = new Box( 0, 5, 0, 10 ); Icon = _icon; Tag = _tag; UpdateContentSize(); }