public void SetData(List <string> paths) { SizeWorkers.Clear(); CurrentRoot = string.Empty; TryCatch.Current.Invoke(() => { Items.Add(paths); AfterItemsChanged?.Invoke(); }); SizeWorkers.Add(this, Items); NotifyDataSetChanged(); }
public void SetData(string path) { SizeWorkers.Clear(); CurrentRoot = path; TryCatch.Current.Invoke(() => { Items.Add(path); AfterItemsChanged?.Invoke(); }); SizeWorkers.Add(this, Items); NotifyDataSetChanged(); }
public void SetData(string path) { TryCatch.Current.Invoke(() => { IsEmptyStyle = true; this.Selects.Clear(); Items.Add(path, SelectorType); if (Items.Count == 0) { Items.Add(new SelectorItem { Parent = path }); } else { IsEmptyStyle = false; } AfterItemsChanged?.Invoke(); }); NotifyDataSetChanged(); }