public RankingModel(IImageDirectory imageDirectory) { _imageDirectory = imageDirectory; ImageManagement imageManagement = new ImageManagement(); ImagesList = imageManagement.GetImagesRankedByVotes(_imageDirectory.Images); }
public IndexModel(IImageDirectory imageDirectory) { _imageDirectory = imageDirectory; ImageManagement imageManagement = new ImageManagement(); ImagesList = imageManagement.GetImagesToVote(_imageDirectory?.Images); TotalNumberOfVotes = imageManagement.GetTotalNumberOfVotes(_imageDirectory?.Images).GetValueOrDefault(); }
public void ShowImageWindow(IImageDirectory currentDirectory = null, string initialFilename = null) { ImageWindow.Show(); _ImagePresenter.ResetImage(currentDirectory, initialFilename); MainWindow.Close(); _MainWindow = null; _MainPresenter = null; }
public void ShowImageWindow(IImageDirectory currentDirectory = null, string initialFilename = null) { ImageWindow.Show(); _ImagePresenter.ResetImage(currentDirectory, initialFilename); MainWindow.Close(); _MainWindow = null; _MainPresenter = null; }
public ImagePresenter( IWindowManager windowManager, IImageView view, IConfiguration config) { _WindowManager = windowManager; _View = view; _Config = config; _ImageDirectory = null; SetupView(); }
public ImagePresenter( IWindowManager windowManager, IImageView view, IConfiguration config) { _WindowManager = windowManager; _View = view; _Config = config; _ImageDirectory = null; SetupView(); }
public void ResetImage(IImageDirectory currentDirectory, string initialFilename) { _ImageDirectory = currentDirectory; _ImageDirectory.SetCurrent(initialFilename); ShowImage(_ImageDirectory.Current()); }
public void ResetImage(IImageDirectory currentDirectory, string initialFilename) { _ImageDirectory = currentDirectory; _ImageDirectory.SetCurrent(initialFilename); ShowImage(_ImageDirectory.Current()); }