public DamageToOtherCar()
 {
     InitializeComponent();
     resizer = DependencyService.Get<IResizeImage>();
     SubscribeToResizeMessages();
     SubscribeToModalPopMessage();
     SubscribeToRedrawStackAfterPhotoTaken();
     PhotoInit();
     Init();
     RenderImages();
 }
Example #2
0
 public FranchiseeTenantController(IAuthenticationService authenticationService, IDiagnosticService diagnosticService,
                                   IGridConfigService gridConfigService, IFranchiseeConfigurationService franchiseeConfigurationService,
                                   IRenderViewToString renderViewToString,
                                   IResizeImage resizeImage, IFranchiseeTenantService franchiseeTenantService)
     : base(authenticationService, diagnosticService, franchiseeTenantService)
 {
     _franchiseeTenantService        = franchiseeTenantService;
     _gridConfigService              = gridConfigService;
     _franchiseeConfigurationService = franchiseeConfigurationService;
     _resizeImage        = resizeImage;
     _renderViewToString = renderViewToString;
 }
Example #3
0
 public UserController(IAuthenticationService authenticationService, IRenderViewToString renderViewToString, IDiagnosticService diagnosticService,
                       IResizeImage resizeImage, IGridConfigService gridConfigService, IUserService userService,
                       IFranchiseeConfigurationService franchiseeConfigurationService, IWebApiConsumeUserService webApiConsumeUserService)
     : base(authenticationService, diagnosticService, userService)
 {
     _userService                    = userService;
     _gridConfigService              = gridConfigService;
     _renderViewToString             = renderViewToString;
     _franchiseeConfigurationService = franchiseeConfigurationService;
     _emailHandler                   = new EmailHandler();
     _resizeImage                    = resizeImage;
     _webApiConsumeUserService       = webApiConsumeUserService;
 }
        public ImageGalleryPage()
        {
            InitializeComponent();
            resizer = DependencyService.Get<IResizeImage>();
            this.BackgroundColor = Color.White;
            SubscribeToResizeMessages();

            Init();
            RenderImages();


            SubscribeToModalPopMessage();

        }
Example #5
0
 public FranchiseeConfigurationController(IAuthenticationService authenticationService, IDiagnosticService diagnosticService,
                                          IResizeImage resizeImage, IGridConfigService gridConfigService, IFranchiseeConfigurationService franchiseeConfigurationService,
                                          IFranchiseeTenantService franchiseeTenantService, IUserService userService, IWebApiPaymentService webApiPaymentService,
                                          IWebApiConsumeUserService webApiUserService, IEmailHandler emailHandler, IContactService contactService, ILocationService locationService,
                                          ISystemConfigurationService systemConfigurationService)
     : base(authenticationService, diagnosticService, franchiseeConfigurationService)
 {
     _resizeImage = resizeImage;
     _franchiseeConfigurationService = franchiseeConfigurationService;
     _gridConfigService          = gridConfigService;
     _webApiUserService          = webApiUserService;
     _diagnosticService          = diagnosticService;
     _userService                = userService;
     _webApiPaymentService       = webApiPaymentService;
     _emailHandler               = emailHandler;
     _contactService             = contactService;
     _locationService            = locationService;
     _systemConfigurationService = systemConfigurationService;
 }
Example #6
0
 public App(IResizeImage resizeImage)
 {
     Global.resizeImage = resizeImage;
     InitializeComponent();
     MainPage = new NavigationPage(new ProjectPage());
 }
     /*   private void Locate()
        {
            var position = new XLabs.Platform.Services.Geolocation.Position
            {
                Longitude = AccidentVM.Longitude,
                Latitude = AccidentVM.Latitude
            };
            //default position

            var pin = new Pin
            {
                Type = PinType.Place,
                Position = new Position(AccidentVM.Latitude, AccidentVM.Longitude),
                Label = "Accident Location",
                Address = ""
            };

            map.Circle = new CustomCircle
            {
                Position = position,
                Radius = 800
            };

            map.Pins.Add(pin);

            map.MoveToRegion(MapSpan.FromCenterAndRadius(new Position(AccidentVM.Latitude, AccidentVM.Longitude
      ), Distance.FromMiles(0.9)));
        }*/
        private void Init()
        {
            vm = App.parentViewModel;
            CustomerVM = vm.Customer;
            AccidentVM = vm.Accident;
            OtherDriverVm = vm.OtherDrivers;
            BackgroundColor = Color.White;
            Title = "Submit your accident";


            resizer = DependencyService.Get<IResizeImage>();
            BindingContext = this;



        }