public async void ShowReviewPopup(OrderBill order) { var ReviewPopup = new ReviewStorePopupView(); ReviewPopup.BindingContext = new ReviewStorePopupViewModel(order); await PopupNavigation.Instance.PushAsync(ReviewPopup); }
public async void ShowReviewPopup(OrderBillItem orderItem) { if (orderItem.Order.State == OrderState.Waiting) { await PopupNavigation.Instance.PopAsync(); (TabBarCustomer.GetInstance().Children.ElementAt(3).BindingContext as ListOrdersViewModel).DeleteOrder(orderItem.Order); return; } var ReviewPopup = new ReviewStorePopupView(); ReviewPopup.BindingContext = new ReviewStorePopupViewModel(orderItem.Order); await PopupNavigation.Instance.PushAsync(ReviewPopup); }