protected TreeViewModel(string name, bool expandable, TreeViewModel parent, IFileTreeViewEvent fileTreeViewEvent) { Children = new ObservableCollection<TreeViewModel>(); Name = name; if (expandable) { Children.Add(DummyChild); } _parent = parent; _fileTreeViewEvent = fileTreeViewEvent; }
public FileTreeViewModel(string name, bool expandable, TreeViewModel parent, FileSystemInfo item, IFileTreeViewEvent fileTreeViewEvent) : base(name, expandable, parent, fileTreeViewEvent) { _fileSystemItem = item; _fileTreeViewEvent = fileTreeViewEvent; }