Exemplo n.º 1
0
        public RankingModel(IImageDirectory imageDirectory)
        {
            _imageDirectory = imageDirectory;
            ImageManagement imageManagement = new ImageManagement();

            ImagesList = imageManagement.GetImagesRankedByVotes(_imageDirectory.Images);
        }
Exemplo n.º 2
0
        public IndexModel(IImageDirectory imageDirectory)
        {
            _imageDirectory = imageDirectory;
            ImageManagement imageManagement = new ImageManagement();

            ImagesList         = imageManagement.GetImagesToVote(_imageDirectory?.Images);
            TotalNumberOfVotes = imageManagement.GetTotalNumberOfVotes(_imageDirectory?.Images).GetValueOrDefault();
        }
Exemplo n.º 3
0
		public void ShowImageWindow(IImageDirectory currentDirectory = null, string initialFilename = null)
		{
			ImageWindow.Show();
			_ImagePresenter.ResetImage(currentDirectory, initialFilename);
			MainWindow.Close();
			_MainWindow = null;
			_MainPresenter = null;
		}
Exemplo n.º 4
0
 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();
		}
Exemplo n.º 6
0
        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());
		}
Exemplo n.º 8
0
 public void ResetImage(IImageDirectory currentDirectory, string initialFilename)
 {
     _ImageDirectory = currentDirectory;
     _ImageDirectory.SetCurrent(initialFilename);
     ShowImage(_ImageDirectory.Current());
 }