예제 #1
0
 public MainPageViewModel()
 {
     HasFiles           = true;
     AddDocumentCommand = new DelegateCommand(NavigateAddDocument);
     AddImageCommand    = new DelegateCommand(NavigateAddImage);
     DeleteFileCommand  = new DelegateCommand <StorageDocumentContainer>(DeleteFile);
     FetchFilesCommand  = new DelegateCommand(FetchStorageFiles);
     Files             = new ObservableCollection <StorageDocumentContainer>();
     _modelUpdateToken = EventMessenger.GetEvent <ModelUpdatedMessageEvent <StorageDocument> >().Subscribe(OnModelUpdated);
     FetchStorageFiles();
 }