예제 #1
0
파일: App.cs 프로젝트: ShiroYacha/Elcathon
 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()
             });
         });
     }
 }
예제 #2
0
 public ScannedListPage()
 {
     InitializeComponent();
     BindingContext = new ScannedListPageViewModel();
 }