예제 #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");
        }
예제 #2
0
 private void InitUser()
 {
     User = _constantUserInstance.GetUser();
 }