Ejemplo n.º 1
0
 public void Remove(HistoryItemViewModel item)
 {
     if (item != null)
     {
         item.Location.TryDeleteDir();
         Items.Remove(item);
     }
 }
Ejemplo n.º 2
0
        public void Reset()
        {
            Items.Clear();
            var sw = new Stopwatch();

            foreach (string dir in Directory.GetDirectories(DataDir).Reverse())
            {
                sw.Start();

                Items.Add(HistoryItemViewModel.LoadFrom(dir));
                Debug.WriteLine(sw.Elapsed + " - " + dir);
                sw.Reset();
            }
        }