public void SendMessageForScan(string productId) { if (productId != "04E18542BC2B80") { var vm = ShoppingListPageViewModel.Data[productId]; MessagingCenter.Send(this, "ScanItem", vm); } else { // check out and pay Device.BeginInvokeOnMainThread(async() => { await NavigationService.NavigateAsync(nameof(PaymentPage), useModalNavigation: true, animated: true, parameters: new Prism.Navigation.NavigationParameters { ["sum"] = ScannedListPageViewModel.GetTotalSum() }); }); } }
public ScannedListPage() { InitializeComponent(); BindingContext = new ScannedListPageViewModel(); }