public CartViewModel(Dictionary <Product, Int32> foodlist) { CartList = foodlist; operations = new MasterDetailPageOperations(); pageService = new PageService(); HomeCommand = new Command(BackToHome); CheckOutCommand = new Command <Food>(CheckOutCustomer); }
public UserViewModel() { _pageService = new PageService(); user = new User(); FetchUser(); operations = new MasterDetailPageOperations(); LoginCommand = new Command(VerifyCreditionals); SignUpCommand = new Command(OnSignUp); }
public HomePage(string user = null) { email = user; masterPage = new MenuPage(user); Master = masterPage; Detail = new NavigationPage(new ProductListPage()); MasterDetailPageOperations operations = new MasterDetailPageOperations(); NavigationPage.SetHasNavigationBar(this, false); InitializeComponent(); masterPage.navigationDrawerList.ItemSelected += OnItemSelected; }
public FoodListViewModel() { // GetContactsAsync(); FoodList = GetContactsAsync(); SelectedFood = new ObservableCollection <Food>(); Cartdictionary = new Dictionary <Food, int>(); AddFoodCommand = new Command <Food>(AddFood); RewindCommand = new Command <Food>(RewindData); CartCommnad = new Command(SelectedFoodItems); operations = new MasterDetailPageOperations(); pageService = new PageService(); }