Ejemplo n.º 1
0
        private void Init()
        {
            User = _constantUserInstance.GetUser();

            byte[] imageByte = _constantUserInstance.GetProfilePic();

            // if stream is null, use the empty profile picture
            ProfilePic = imageByte != null?ByteToImage(imageByte) : ImageSource.FromFile("Assets/Images/emptyProfile.png");
        }
Ejemplo n.º 2
0
 private void InitUser()
 {
     User = _constantUserInstance.GetUser();
 }