/// <summary> /// Class constructor /// </summary> /// <param name="name"></param> public FileViewModel( IFSItemViewModel parent , string name) { _parent = parent; _Name = name; _Children = new SortableObservableDictionaryCollection(); }
/// <summary> /// Class constructor /// </summary> public DirSubTreeViewModel(IDirSubTreeViewModel parent, DirSubTree dirSubTree) { _dirSubTree = dirSubTree; _parent = parent; _children = new SortableObservableDictionaryCollection(); foreach (DirSubTree child in _dirSubTree.Children) { _children.AddItem(new DirSubTreeViewModel(this, child)); } }