public IStorage CreateStorage(StorageLocation storageLocation) { var storage = new StorageWindowsShared(storageLocation); var minDimension = Math.Min(ServiceLocator.SystemInformationService.ScreenHeight, ServiceLocator.SystemInformationService.ScreenWidth); if (minDimension < 400) { storage.SetImageMaxThumbnailWidthHeight(200); } else if (minDimension <= 700) { storage.SetImageMaxThumbnailWidthHeight(400); } else { storage.SetImageMaxThumbnailWidthHeight(600); } return(storage); }
public IStorage CreateStorage(StorageLocation storageLocation) { var storage = new StorageWindowsShared(storageLocation); var minDimension = Math.Min(ServiceLocator.SystemInformationService.ScreenHeight, ServiceLocator.SystemInformationService.ScreenWidth); if (minDimension < 400) { storage.SetImageMaxThumbnailWidthHeight(200); } else if (minDimension <= 700) { storage.SetImageMaxThumbnailWidthHeight(400); } else { storage.SetImageMaxThumbnailWidthHeight(600); } return storage; }