private TreeViewDataModel createNewNode(StringItem nodeName) { var newNode = new TreeViewDataModel() { DisplayName = nodeName }; newNode.Children.Add(new TreeViewDataModel() { DisplayName = nodeName }); return(newNode); }
public void addNewLocNode(StringItem nodeName) { TreeObservableCollection.Add(createNewNode(nodeName)); }