Simplified Tile class

This commit is contained in:
ClemensFischer 2023-08-21 20:48:51 +02:00
parent 7b404446d2
commit 7d78d2587e
4 changed files with 13 additions and 14 deletions

View file

@ -11,9 +11,9 @@ namespace MapControl
{
public partial class Tile
{
private void AnimateImageOpacity()
private void AnimateImageOpacity(ImageSource image)
{
if (Image.Source is BitmapSource bitmap && !bitmap.IsFrozen && bitmap.IsDownloading)
if (image is BitmapSource bitmap && !bitmap.IsFrozen && bitmap.IsDownloading)
{
bitmap.DownloadCompleted += BitmapDownloadCompleted;
bitmap.DownloadFailed += BitmapDownloadFailed;