Beispiel #1
0
        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;
        }
Beispiel #2
0
 public FileTreeViewModel(string name, bool expandable, TreeViewModel parent, FileSystemInfo item, IFileTreeViewEvent fileTreeViewEvent)
     : base(name, expandable, parent, fileTreeViewEvent)
 {
     _fileSystemItem = item;
     _fileTreeViewEvent = fileTreeViewEvent;
 }