public DecorateViewModel(IImageManagerService imageManagerService)
 {
     _imageManagerService = imageManagerService;
     Title         = "Health Camera Page";
     GoBackCommand = new Command(OnBack);
     UploadCommand = new Command(UploadImage);
 }
 public ImageManagerController(
     IHostingEnvironment hostingEnvironment,
     IImageManagerService imageManagerService)
 {
     _imageManagerService = imageManagerService;
     _hostingEnvironment  = hostingEnvironment;
 }
        // Ctor
        public HealthSelectionViewModel(IImageManagerService imageManagerService)
        {
            Title = "Health Selection Page";

            GoBackCommand = new Command(OnBack);
            DoneCommand   = new Command(OnDone);

            _imageManagerService = imageManagerService;
        }
        // Ctor
        public DecorateSelectionViewModel(IImageManagerService imageManagerService)
        {
            Title = "Decorate Selection Page";

            GoBackCommand         = new Command(OnBack);
            DoneCommand           = new Command(OnDone);
            AutoBackgroundCommand = new Command(OnAutoBackground);

            _imageManagerService = imageManagerService;
        }
Пример #5
0
 public ManufacturerController(
     IManufacturerService manufacturerService,
     IImageManagerService imageMangerService,
     IHttpContextAccessor httpContextAccessor,
     ViewHelper viewHelper,
     DataHelper dataHelper,
     IMapper mapper)
 {
     _manufacturerService = manufacturerService;
     _imageManagerService = imageMangerService;
     _httpContextAccessor = httpContextAccessor;
     _viewHelper          = viewHelper;
     _dataHelper          = dataHelper;
     _mapper = mapper;
 }
 public ProductController(
     ICategoryService categoryService,
     IImageManagerService imageManagerService,
     IManufacturerService manufacturerService,
     IProductService productService,
     ISpecificationService specificationService,
     IHttpContextAccessor httpContextAccessor,
     ViewHelper viewHelper,
     DataHelper dataHelper,
     IMapper mapper)
 {
     _categoryService      = categoryService;
     _imageManagerService  = imageManagerService;
     _manufacturerService  = manufacturerService;
     _productService       = productService;
     _specificationService = specificationService;
     _httpContextAccessor  = httpContextAccessor;
     _viewHelper           = viewHelper;
     _dataHelper           = dataHelper;
     _mapper = mapper;
 }
        //ctor
        public HealthResultsViewModel(IDialogBoxService dialogBoxService, IImageManagerService imageManagerService)
        {
            _imageManagerService = imageManagerService;
            _dialogBoxService    = dialogBoxService;
            _dialogBoxService.InitDialogBox(new DialogBoxService.HealthResultsSave(OnNewPlant, OnExistingPlant, OnCancel));
            InitializePipelines();

            DiseasesCollection = new ObservableCollection <DiseaseInfo> {
                new DiseaseInfo("Black Spots", "Details about disease 1", DiseaseResultType.Ok),
                new DiseaseInfo("Disease2", "Details about disease 2", DiseaseResultType.Warning),
                new DiseaseInfo("Disease3", "Details about disease 3", DiseaseResultType.Error),
                new DiseaseInfo("Disease3", "Details about disease 3", DiseaseResultType.Error),
                new DiseaseInfo("Disease3", "Details about disease 3", DiseaseResultType.Error),
                new DiseaseInfo("Disease3", "Details about disease 3", DiseaseResultType.Error),
                new DiseaseInfo("Disease3", "Details about disease 3", DiseaseResultType.Error),
                new DiseaseInfo("Disease3", "Details about disease 3", DiseaseResultType.Error)
            };
            Title         = "Health Results Page";
            GoBackCommand = new Command(OnBack);
            GoHomeCommand = new Command(OnHome);
            SaveCommand   = new Command(OnSave);
        }
Пример #8
0
 public TutanakController(IImageManagerService imageManagerService, IResultsRepository resultsRepository, ILogger logger)
 {
     this.imageManagerService = imageManagerService;
     this.resultsRepository = resultsRepository;
     this.logger = logger;
 }
Пример #9
0
 public UserController(IUserService userService, IImageManagerService imageManagerService)
 {
     _userService         = userService;
     _imageManagerService = imageManagerService;
 }