private async void NxtBtn_Clicked(object sender, EventArgs e) { string param = ((Button)sender).CommandParameter.ToString(); if (param.ToLower().Contains("NEXT".ToLower())) { if (_viewModel.others.ID == 1 || _viewModel.others.ID == 9 || _viewModel.others.ID == 10) { await _viewModel.NavigateToMealSummary(); } else { var enabledView = menuCategories.Children.Where(p => p is Frame).Where(x => x.IsEnabled).First(); SelectElement(enabledView as Frame); } } else { _viewModel.PlaceOrder(); } }
private async void NxtBtn_Clicked(object sender, EventArgs e) { string param = ((Button)sender).CommandParameter.ToString(); if (param.Equals("NEXT")) { if (_viewModel.others.ID == 1 || _viewModel.others.ID == 8 || _viewModel.others.ID == 5) { await _viewModel.NavigateToMealSummary(); } else { var menu = _viewModel.MenuCategories.Where(x => x.CategoryVisibility).First(); await selectMenuCategory(menu); } } else { _viewModel.PlaceOrder(); } }