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); }
public void Save(FileInformation fileinfo) { _metadata.Save(fileinfo); }
public void RefreshMetadata(FileInformation fileinfo) { FileInfo fi = _fileStorage.GetFileInfo(fileinfo.Id); _metadata.RefreshMetadata(fileinfo, fi); }