public void Reset(TreeItemCollection folders) { _collection.Clear(); _collection.AddRange(folders); CollectionChanged?.Invoke(_collection, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); }
public TreeItem(IconType icon, string fullPath, string path) { _iconType = icon; _fullPath = fullPath; _path = path; _children = new TreeItemCollection(); _children.Add(new TreeItem()); }