Exemple #1
0
 /// <summary>
 /// Set the data from the View Model
 /// </summary>
 private void SetDataToView()
 {
     UserFullNameUserTextView.Text = App.Locator.LeftMenu.UserFullName;
     UserCreditNumberTextView.Text = SeekiosApp.Helper.CreditHelper.TotalCredits;
     UserEmailTextView.Text        = App.CurrentUserEnvironment.User.Email;
     if (!string.IsNullOrEmpty(App.CurrentUserEnvironment.User.UserPicture))
     {
         var bytes = Convert.FromBase64String(App.CurrentUserEnvironment.User.UserPicture);
         UserImage.SetImageBitmap(BitmapFactory.DecodeByteArray(bytes, 0, bytes.Length));
     }
     else
     {
         UserImage.SetImageResource(Resource.Drawable.DefaultUser);
     }
 }