コード例 #1
0
 public CartViewModel(Dictionary <Product, Int32> foodlist)
 {
     CartList        = foodlist;
     operations      = new MasterDetailPageOperations();
     pageService     = new PageService();
     HomeCommand     = new Command(BackToHome);
     CheckOutCommand = new Command <Food>(CheckOutCustomer);
 }
コード例 #2
0
 public UserViewModel()
 {
     _pageService = new PageService();
     user = new User();
     FetchUser();
     operations = new MasterDetailPageOperations();
     LoginCommand = new Command(VerifyCreditionals);
     SignUpCommand = new Command(OnSignUp);
 }
コード例 #3
0
        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;
        }
コード例 #4
0
 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();
 }