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