Example #1
0
        private void SetCover( BookItem B )
        {
            Worker.UIInvoke( () =>
            {
                BitmapImage bmp = new BitmapImage();
                bmp.SetSourceFromUrl( B.CoverPath );

                B.Cover = bmp;
            } );
        }
Example #2
0
        private void RefreshAvatar()
        {
            Image.Destroy( Avatar );
            Avatar = new BitmapImage();

            if ( !( Member.IsLoggedIn && Shared.Storage.FileExists( AvatarLocation ) ) )
            {
                NotifyChanged( "Avatar" );
                return;
            }

            Avatar.SetSourceFromUrl( AvatarLocation );
            NotifyChanged( "Avatar" );
        }