WIP files
This commit is contained in:
parent
8a8167a08f
commit
f2de8d9db5
15 changed files with 351 additions and 57 deletions
|
|
@ -0,0 +1,32 @@
|
|||
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Windows.Input;
|
||||
using XLabs.Forms.Mvvm;
|
||||
|
||||
namespace BookAStar.ViewModels.UserProfile
|
||||
{
|
||||
using Model.FileSystem;
|
||||
|
||||
public class DirectoryInfoViewModel : ViewModel
|
||||
{
|
||||
public ObservableString SubPath { get; set; }
|
||||
public ObservableCollection<string> SubDirectories { get; set; }
|
||||
public ObservableCollection<UserFileInfo> FileInfo { get; set; }
|
||||
public ICommand RefreshCommand { get; set; }
|
||||
public DirectoryInfoViewModel (UserDirectoryInfo model=null)
|
||||
{
|
||||
Data.DataManager.Current.RemoteFiles.CollectionChanged += RemoteFiles_CollectionChanged;
|
||||
|
||||
if (model == null)
|
||||
model = Data.DataManager.Current.RemoteFiles.CurrentItem;
|
||||
SubDirectories = new ObservableCollection<string> (model.SubDirectories);
|
||||
SubPath = new ObservableString (model.SubPath);
|
||||
FileInfo = new ObservableCollection<Model.FileSystem.UserFileInfo> (model.Files);
|
||||
}
|
||||
|
||||
private void RemoteFiles_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue