Example #1
0
 private void TransacrionComplete(Transaction t, string erroorMessage)
 {
     if (string.IsNullOrEmpty(erroorMessage))
     {
         balance.Text = GetString(Resource.String.balance_format, t.balance);
         PWAPI.GetListTransaction(FillHistoryList);
         balance.Text = GetString(Resource.String.balance_format, t.balance);
         AlertDialog.Builder alert = new AlertDialog.Builder(this, Resource.Style.Dialog)
                                     .SetTitle(Resource.String.pay_success)
                                     .SetMessage(GetString(Resource.String.pay_success_format, t.username, t.amount, t.balance))
                                     .SetPositiveButton(Resource.String.btn_ok, (sender, e) => { });
         alert.Show();
     }
     else
     {
         AlertDialog.Builder alert = new AlertDialog.Builder(this, Resource.Style.Dialog);
         alert.SetTitle(Resource.String.str_error).SetMessage(erroorMessage)
         .SetPositiveButton(Resource.String.btn_ok, (s, e) => { });
         alert.Show();
     }
 }
Example #2
0
 protected override void OnResume()
 {
     base.OnResume();
     PWAPI.GetUserInfo(FillHeader);
     PWAPI.GetListTransaction(FillHistoryList);
 }