Esempio n. 1
0
 public InventoryPageViewModel(INavigationService navigationService, IFarmAppService farmAppService) :
     base(navigationService)
 {
     Title = "Inventory";
     _navigationService = navigationService;
     _farmAppService    = farmAppService;
     PharmacyId         = Store.CurrentStoreId;
     GetPharmacyProducts();
 }
Esempio n. 2
0
        public InfoPageViewModel(INavigationService navigationService, IFarmAppService farmAppService) :
            base(navigationService)
        {
            Title = InfoPageTitle;
            _navigationService = navigationService;
            _farmAppService    = farmAppService;
            PharmacyId         = Store.CurrentStoreId;

            GetInfo();
        }
Esempio n. 3
0
        public SharePageViewModel(INavigationService navigationService, IPageDialogService dialogService, IFarmAppService farmAppService) :
            base(navigationService)
        {
            Title              = SharePageTitle;
            _dialogService     = dialogService;
            _navigationService = navigationService;
            _farmAppService    = farmAppService;
            PharmacyId         = Store.CurrentStoreId;

            CopyCommand    = new DelegateCommand(async() => await Copy());
            OpenMapCommand = new DelegateCommand(async() => await OpenMap());
        }
Esempio n. 4
0
        public LogsPageViewModel(INavigationService navigationService, IPageDialogService pageDialogService, IFarmAppService farmAppService,
                                 IDialogService dialogService) :
            base(navigationService)
        {
            Title = LogsPageTitle;
            _navigationService = navigationService;
            _pageDialogService = pageDialogService;
            _farmAppApiService = farmAppService;
            _dialogService     = dialogService;

            PickerGender();
            User          = new User();
            UserPerson    = new UserPerson();
            LogInCommand  = new Command(async() => await OnLogin());
            SingUpCommand = new Command(async() => await OnSignUp());
        }
Esempio n. 5
0
        public HomePageViewModel(INavigationService navigationService, IPageDialogService pageDialogService, IGoogleMapsService googleMapsService,
                                 IFarmAppService farmAppService, IDialogService dialogService)
            : base(navigationService)
        {
            _pageDialogService = pageDialogService;
            _navigationService = navigationService;
            _googleMapsService = googleMapsService;
            _farmAppService    = farmAppService;
            _dialogService     = dialogService;

            CurrentLocation = null;
            Pins            = null;
            SetCurrentLocation();
            getProducts();

            SearchCommand          = new DelegateCommand(async() => await OnSearchAsync());
            LogoutCommand          = new DelegateCommand(async() => await OnLogout());
            CurrentLocationCommand = new DelegateCommand(SetCurrentLocation);
        }