TreeNode <ITreeViewSampleItem> Node(ITreeViewSampleItem item, ObservableList <TreeNode <ITreeViewSampleItem> > nodes = null) { return(new TreeNode <ITreeViewSampleItem>(item, nodes)); }
/// <summary> /// Set data. /// </summary> /// <param name="item">Item.</param> public virtual void SetData(ITreeViewSampleItem item) { SetData(item as TreeViewSampleItemCountry); }
/// <summary> /// Create node with specified item. /// </summary> /// <param name="item">Item.</param> /// <param name="nodes">Subnodes.</param> /// <returns>Node.</returns> static protected TreeNode <ITreeViewSampleItem> Node(ITreeViewSampleItem item, ObservableList <TreeNode <ITreeViewSampleItem> > nodes = null) { return(new TreeNode <ITreeViewSampleItem>(item, nodes, false, true)); }
/// <summary> /// Set data. /// </summary> /// <param name="item">Item.</param> public virtual void SetData(ITreeViewSampleItem item) { SetData(item as TreeViewSampleItemContinent); }
TreeNode<ITreeViewSampleItem> Node(ITreeViewSampleItem item, ObservableList<TreeNode<ITreeViewSampleItem>> nodes = null) { return new TreeNode<ITreeViewSampleItem>(item, nodes); }