コード例 #1
0
 private void CreditCardPayButton_Clicked(object sender, EventArgs e)
 {
     if (!Navigation.NavigationStack.Contains(_handCradPaymentPage))
     {
         HandCardPaymentViewModel viewModel = new HandCardPaymentViewModel();
         viewModel.TotalAmt    = App.ViewModelLocator.PayPrepareViewModel.RemainAmt;
         viewModel.ReceivedAmt = App.ViewModelLocator.PayPrepareViewModel.RemainAmt;
         viewModel.CartId      = App.ViewModelLocator.PayPrepareViewModel.CartId;
         Navigation.PushAsync(_handCradPaymentPage = new HandCradPaymentPage(viewModel));
     }
 }
コード例 #2
0
 public HandCradPaymentPage(HandCardPaymentViewModel viewModel) : this()
 {
     BindingContext = viewModel;
 }