public void Reset(TreeItemCollection folders)
        {
            _collection.Clear();
            _collection.AddRange(folders);

            CollectionChanged?.Invoke(_collection, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
        }
Exemple #2
0
 public TreeItem(IconType icon, string fullPath, string path)
 {
     _iconType = icon;
     _fullPath = fullPath;
     _path     = path;
     _children = new TreeItemCollection();
     _children.Add(new TreeItem());
 }