예제 #1
0
 private void OnWithdrawCompleted(object sender, WithdrawCompletedEventArgs e)
 {
     if (e.Error == null && string.IsNullOrWhiteSpace(e.ErrorMessage))
     {
         _eventAggregator.GetEvent<AccountBalanceChangedEvent>().Publish(e.Account.Balance);
     }
     else if (!string.IsNullOrWhiteSpace(e.ErrorMessage))
     {
     }
 }
예제 #2
0
 private void OnWithdrawCompleted(object sender, WithdrawCompletedEventArgs e)
 {
     if (e.Error == null && string.IsNullOrWhiteSpace(e.ErrorMessage))
     {
         _eventAggregator.GetEvent <AccountBalanceChangedEvent>().Publish(e.Account.Balance);
     }
     else if (!string.IsNullOrWhiteSpace(e.ErrorMessage))
     {
     }
 }
 void ShowWithdrawalResult(object sender, WithdrawCompletedEventArgs e)
 {
     if (e.Result.Success)
     {
         IPop<string> cw = ViewModelService.GetPop(Pop.ErrorPrompt) as IPop<string>;
         cw.State = "添加提现申请成功";
         cw.Closed += JumpToRecordsPage;
         cw.Show();
     }
     else
     {
         this.IsBusy = false;
         ShowError(e.Result.Error);
     }
 }