public ImageController(IImageDataProvider imageDataProvider, IImageFactory imageFactory, IImageRepository imageRespository, IImageUrlProvider imageUrlProvider)
 {
     _imageDataProvider = imageDataProvider;
     _imageFactory = imageFactory;
     _imageRespository = imageRespository;
     _imageUrlProvider = imageUrlProvider;
 }
Esempio n. 2
0
 /// <summary>
 /// User has changed their desired image source via changing the dropdown list on the GUI. Creates a new provider
 /// based on the value of the dropdown that they selected.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private async void ImageSourceDropDown_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     NextButton.IsEnabled = false;
     var providerName = e.AddedItems[0].ToString();
     var providerFactory = new ImageProviderFactory();
     // set the new imageprovider asynchronously since it requires downloading a page.
     await Task.Run(() => { this._imageLinkProvider = providerFactory.CreateProvider(providerName); });
     NextButton.IsEnabled = true;
 }
        /// <summary>
        /// User has changed their desired image source via changing the dropdown list on the GUI. Creates a new provider
        /// based on the value of the dropdown that they selected.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void ImageSourceDropDown_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            NextButton.IsEnabled = false;
            var providerName    = e.AddedItems[0].ToString();
            var providerFactory = new ImageProviderFactory();
            // set the new imageprovider asynchronously since it requires downloading a page.
            await Task.Run(() => { this._imageLinkProvider = providerFactory.CreateProvider(providerName); });

            NextButton.IsEnabled = true;
        }
 public ImageProcessorsController(
     IImageRepository imageRepository,
     IImageProcessorsService imageProcessorService,
     IImageFactory imageFactory,
     IImageUrlProvider imageUrlProvider)
 {
     _imageRepository = imageRepository;
     _imageProcessorService = imageProcessorService;
     _imageFactory = imageFactory;
     _imageUrlProvider = imageUrlProvider;
 }
 public CarNumberController(
     IImageFactory imageFactory, 
     ICarNumerIdentifyService identifyService, 
     IImageRepository imageRepository,
     IImageUrlProvider imageUrlProvider)
 {
     _imageFactory = imageFactory;
     _identifyService = identifyService;
     _imageRepository = imageRepository;
     _imageUrlProvider = imageUrlProvider;
 }