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

                B.Cover = bmp;
            } );
        }
예제 #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" );
        }