コード例 #1
0
 public ReceiptPage(SlipViewModel slipViewModel)
 {
     InitializeComponent();
     try
     {
         receipt = slipViewModel;
         CreateReceipt();
         BindingContext = new ReceiptPageViewModel();
     }
     catch (Exception e)
     {
         DisplayAlert("Error", e.Message, "Ok");
     }
 }
コード例 #2
0
        public void PushToTopupSlip()
        {
            PopupNavigation.Instance.PopAllAsync();
            SlipViewModel slip = new SlipViewModel()
            {
                Amount             = Amount,
                CreateDate         = CreateDate,
                OtherAccountNumber = AdminAccountNumber,
                OtherName          = AdminName,
                Reference          = QRCodeReference,
                Type = EWalletV2.Api.ViewModels.EW_Enumerations.EW_TypeTransectionEnum.TopUp
            };

            Application.Current.MainPage.Navigation.PushAsync(new ReceiptPage(slip));
        }
コード例 #3
0
        private async void PushToSlip()
        {
            await PopupNavigation.Instance.PopAllAsync();

            SlipViewModel payment = new SlipViewModel()
            {
                Amount             = Amount,
                CreateDate         = CreateDate,
                OtherAccountNumber = MerchantAccountNumber,
                OtherName          = MerchantName,
                Reference          = Reference,
                Type = EW_TypeTransectionEnum.Payment
            };

            Application.Current.MainPage.Navigation.PushAsync(new ReceiptPage(payment));
        }