예제 #1
0
 public FileInformationViewModel(FileInformation fileInformation)
 {
     FileInformation = fileInformation;
     _engine = DependencyResolver.Resolve<IEngine>();
     RefreshMetadata = new Command(OnRefreshMetadataExecute);
     Save = new Command(OnSaveExecute);
     Delete = new Command(OnDeleteExecute);
     RotateLeft = new Command(OnRotateLeftExecute);
     RotateRight = new Command(OnRotateRightExecute);
 }
예제 #2
0
 public void Save(FileInformation fileinfo)
 {
     _metadata.Save(fileinfo);
 }
예제 #3
0
 public void RefreshMetadata(FileInformation fileinfo)
 {
     FileInfo fi = _fileStorage.GetFileInfo(fileinfo.Id);
     _metadata.RefreshMetadata(fileinfo, fi);
 }