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);
 }