Beispiel #1
0
        void imageButtonClicked(object sender, System.EventArgs e)
        {
            IGalleryImageService galleryService = Xamarin.Forms.DependencyService.Get <IGalleryImageService>();

            galleryService.ImageSelected += (o, imageSourceEventArgs) => playerImage.Source = imageSourceEventArgs.ImageSource;
            galleryService.SelectImage();
        }
Beispiel #2
0
        public GalleryController(IGalleryImageService galleryService, IMappingService mappingService, IUserService userService, IUtilitiesService utils)
        {
            if (galleryService == null)
            {
                throw new ArgumentNullException();
            }

            if (mappingService == null)
            {
                throw new ArgumentNullException();
            }

            if (userService == null)
            {
                throw new ArgumentNullException();
            }

            if (utils == null)
            {
                throw new ArgumentNullException();
            }

            this.galleryService = galleryService;
            this.mappingService = mappingService;
            this.userService    = userService;
            this.utils          = utils;
        }
Beispiel #3
0
 public HomeController(ICategoryService categoryService, ISiteService siteService, IGalleryImageService galleryImageService, IProductService productService, IOrderService orderService)
 {
     _categoryService     = categoryService;
     _siteService         = siteService;
     _galleryImageService = galleryImageService;
     _productService      = productService;
     _orderService        = orderService;
 }
Beispiel #4
0
 public AddPhoto()
 {
     this.service = NinjectWebCommon.Kernel.Get <IGalleryImageService>();
 }
Beispiel #5
0
 public Details()
 {
     this.service = NinjectWebCommon.Kernel.Get <IGalleryImageService>();
 }
Beispiel #6
0
 public GaleryController(IGalleryImageService galleryImageService)
 {
     _galleryImageService = galleryImageService;
 }
Beispiel #7
0
 public GalleryControllerMock(IGalleryImageService galleryService, IMappingService mappingService, IUserService userService, IUtilitiesService utils)
     : base(galleryService, mappingService, userService, utils)
 {
 }
 public GalleryImagesController(IGalleryImageService galleryImageService, ITheBinderyContentFactory theBinderyContentFactory, IMapper mapper)
 {
     _galleryImageService      = galleryImageService;
     _theBinderyContentFactory = theBinderyContentFactory;
     _mapper = mapper;
 }