Exemple #1
0
        private void OnMenuItemSelected(DirectoryItem item)
        {
            int index = PathItems.IndexOf(item);

            for (int i = PathItems.Count - 1; i > PathItems.IndexOf(item); i--)
            {
                PathItems.RemoveAt(i);
            }
            Items = new ObservableCollection <Item>(_provider.GetItems(item.Path));
        }
Exemple #2
0
 private void OnPreviousDirectoryRequested()
 {
     if (PathItems.Count > 1)
     {
         PathItems.RemoveAt(PathItems.Count - 1);
         Items = new ObservableCollection <Item>(_provider.GetItems(PathItems.Last().Path));
     }
     else if (PathItems.Count == 1)
     {
         PathItems.Clear();
         Items = new ObservableCollection <Item>(_provider.GetDrives());
     }
 }