コード例 #1
0
 public InventoryPageViewModel(INavigationService navigationService, IFarmAppService farmAppService) :
     base(navigationService)
 {
     Title = "Inventory";
     _navigationService = navigationService;
     _farmAppService    = farmAppService;
     PharmacyId         = Store.CurrentStoreId;
     GetPharmacyProducts();
 }
コード例 #2
0
ファイル: InfoPageViewModel.cs プロジェクト: Betoso99/FarmApp
        public InfoPageViewModel(INavigationService navigationService, IFarmAppService farmAppService) :
            base(navigationService)
        {
            Title = InfoPageTitle;
            _navigationService = navigationService;
            _farmAppService    = farmAppService;
            PharmacyId         = Store.CurrentStoreId;

            GetInfo();
        }
コード例 #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());
        }
コード例 #4
0
ファイル: LogsPageViewModel.cs プロジェクト: Betoso99/FarmApp
        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());
        }
コード例 #5
0
ファイル: HomePageViewModel.cs プロジェクト: Betoso99/FarmApp
        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);
        }