public ScanningQrCodeViewModel(
     INavigationService naviagtionService,
     IPinModelService pinModelService,
     IAuthorizationService authorization) :
     base(naviagtionService)
 {
     Title            = "Scan QR code";
     _pinModelService = pinModelService;
     _authorization   = authorization;
 }
示例#2
0
        //private IPermissionService _permissionService;

        public MapTabViewModel(
            INavigationService navigationService,
            IPinModelService pinModelService,
            IDialogService dialogService,
            IAuthorizationService authorizationService,
            IAppThemeService appThemeService) :
            base(navigationService)
        {
            Title = "Map";

            _pinModelService      = pinModelService;
            _dialogService        = dialogService;
            _authorizationService = authorizationService;
            _appThemeService      = appThemeService;
            //IPermissionService permissionService_permissionService = permissionService;

            Pins = new ObservableCollection <Pin>();

            Categories = new List <CategoriesForPin>
            {
                new CategoriesForPin {
                    Name = "Gyms"
                },
                new CategoriesForPin {
                    Name = "Restaurants"
                },
                new CategoriesForPin {
                    Name = "Hotels"
                },
                new CategoriesForPin {
                    Name = "Supermarkets"
                },
                new CategoriesForPin {
                    Name = "Schools"
                },
                new CategoriesForPin {
                    Name = "Place to rest"
                },
                new CategoriesForPin {
                    Name = "Work"
                },
                new CategoriesForPin {
                    Name = "Home"
                },
                new CategoriesForPin {
                    Name = "Airports"
                },
                new CategoriesForPin {
                    Name = "Football stadium"
                }
            };
        }
        public PinTabViewModel(
            INavigationService navigationPage,
            IPinModelService pinModelService,
            IAuthorizationService authorizationService,
            IPageDialogService pageDialogService) :
            base(navigationPage)
        {
            Title = "Pins";

            _pinModelService      = pinModelService;
            _authorizationService = authorizationService;
            _pageDialogService    = pageDialogService;
        }
示例#4
0
        public AddPinViewModel(
            INavigationService navigationService,
            IPinModelService pinModelService,
            IAuthorizationService authorization,
            IPageDialogService pageDialogService,
            IAppThemeService appThemeService) :
            base(navigationService)
        {
            Title = "Add pin";

            _pinModelService   = pinModelService;
            _authorization     = authorization;
            _pageDialogService = pageDialogService;
            _appThemeService   = appThemeService;

            Categories = new List <CategoriesForPin>
            {
                new CategoriesForPin {
                    Name = "Gyms"
                },
                new CategoriesForPin {
                    Name = "Restaurants"
                },
                new CategoriesForPin {
                    Name = "Hotels"
                },
                new CategoriesForPin {
                    Name = "Supermarkets"
                },
                new CategoriesForPin {
                    Name = "Schools"
                },
                new CategoriesForPin {
                    Name = "Place to rest"
                },
                new CategoriesForPin {
                    Name = "Work"
                },
                new CategoriesForPin {
                    Name = "Home"
                },
                new CategoriesForPin {
                    Name = "Airports"
                },
                new CategoriesForPin {
                    Name = "Football stadium"
                }
            };
        }