Exemple #1
0
 public void SetData(List <string> paths)
 {
     SizeWorkers.Clear();
     CurrentRoot = string.Empty;
     TryCatch.Current.Invoke(() => {
         Items.Add(paths);
         AfterItemsChanged?.Invoke();
     });
     SizeWorkers.Add(this, Items);
     NotifyDataSetChanged();
 }
Exemple #2
0
 public void SetData(string path)
 {
     SizeWorkers.Clear();
     CurrentRoot = path;
     TryCatch.Current.Invoke(() => {
         Items.Add(path);
         AfterItemsChanged?.Invoke();
     });
     SizeWorkers.Add(this, Items);
     NotifyDataSetChanged();
 }
Exemple #3
0
 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();
 }