public MenuPage() { BindingContext = new Fabrirkam_Food.MenuPageViewModel(); Title = "Menu"; Icon = Device.OS == TargetPlatform.Android ? "menu.png" : null; InitializeComponent(); }
public OrderFoodPage(String name, double price) { _name = name; _price = price; InitializeComponent(); BindingContext = new Fabrirkam_Food.MenuPageViewModel(); BindingContext = this; }
public JourneyPage() { BindingContext = new Fabrirkam_Food.MenuPageViewModel(); InitializeComponent(); Info info = new Info(); _key = info.getGoogleMatrixKey(); _fabLocation = info.getLocation(); fabrikamLocation.Text = "Fabrikam Food Location: " + _fabLocation; getCurrentLocation(); }
public OrderPage() { BindingContext = new Fabrirkam_Food.MenuPageViewModel(); InitializeComponent(); this.getFoodList(); FoodList.ItemsSource = _foodList; FoodList.ItemSelected += (sender, e) => { if (e.SelectedItem == null) { return; } FoodDetail fd = (FoodDetail)e.SelectedItem; App.RootPage.Detail = new NavigationPage(new OrderFoodPage(fd.name, fd.price)); App.MenuIsPresented = false; }; }
public HomePage() { BindingContext = new Fabrirkam_Food.MenuPageViewModel(); InitializeComponent(); }
public HistoryPage() { _foodList = new List <Food>(); BindingContext = new Fabrirkam_Food.MenuPageViewModel(); InitializeComponent(); }