Example #1
0
        public Bitmap GetUserThumbnail(User user)
        {
            if (_thumbnailDictionary.ContainsKey (user.Email))
                    return _thumbnailDictionary [user.Email];
                if(user.ThumbnailUrl == null)
                    return null;

                var image = LoadImage (user.ThumbnailUrl);
                _thumbnailDictionary [user.Email] = image;
                return image;
        }
Example #2
0
        public Bitmap GetUserPicture(User user)
        {
            if (_pictureDictionary.ContainsKey (user.Email))
                    return _pictureDictionary [user.Email];
                if(user.PictureUrl == null)
                    return null;

                var image = LoadImage(user.PictureUrl);
                _pictureDictionary [user.Email] = image;
                return image;
        }
 public override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     _user = _userViewModel.User;
 }
        private void SelectUser(User user)
        {
            _userRepository.SetSelectedUser(user);
//			this.SelectedUser = user;
        }
 public void SetSelectedUser(User user)
 {
     _selectedUser = user;
     if (SelectedUserChanged != null)
         SelectedUserChanged(this, user);
 }