private void BadgeInformationCallback(BadgeInformation badgeInformation)
 {
     if (!badgeInformation.Equals(_loadedBadgeInformation))
     {
         ApplicationSettings.Instance.Persistency.Save(badgeInformation);
         LoadBadgeInformation(badgeInformation);
     }
 }
 public void badgeInfoCallback(BadgeInformation badgeInfo)
 {
     RunOnUiThread(() => {
         for (int i = 0; i < horiPager.ChildCount; i++)
         {
             var view = horiPager.GetChildAt(i);
             var textField = view.FindViewById<TextView>(Resource.Id.saldo);
             if (textField != null )
             {
                 if (badgeInfo != null)
                     textField.Text = badgeInfo.BadgeSaldoString;
                 else
                     textField.Text = "Saldo: 00.00";
             }
         }
     });
 }
 private void LoadBadgeInformation(BadgeInformation badgeInformation)
 {
     UIApplication.SharedApplication.InvokeOnMainThread(() =>
     {
         if (badgeInformation.HasError)
         {
             if (_loadedBadgeInformation == null && _loadedBadgeInformation.CashAmount == 0)
                 BadgeSaldo.Text = badgeInformation.ErrorMessage;
         }
         else
         {
             BadgeSaldo.Text = badgeInformation.BadgeSaldoString;
         }
     });
     _loadedBadgeInformation = badgeInformation;
 }