public InventoryPageViewModel(INavigationService navigationService, IFarmAppService farmAppService) : base(navigationService) { Title = "Inventory"; _navigationService = navigationService; _farmAppService = farmAppService; PharmacyId = Store.CurrentStoreId; GetPharmacyProducts(); }
public InfoPageViewModel(INavigationService navigationService, IFarmAppService farmAppService) : base(navigationService) { Title = InfoPageTitle; _navigationService = navigationService; _farmAppService = farmAppService; PharmacyId = Store.CurrentStoreId; GetInfo(); }
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()); }
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()); }
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); }