Czoko_Smieciarka/Trunk/Interface/CzokoŚmieciarka.WPF/Interfaces/AObject.cs

26 lines
670 B
C#
Raw Normal View History

2019-03-26 22:47:45 +01:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using CzokoŚmieciarka.DataModels.Models;
using CzokoŚmieciarka.WPF.Models;
namespace CzokoŚmieciarka.WPF.Interfaces
{
public abstract class AObject : IObject
{
public Coords Location { get; set; }
public string ImagePath { get; set; }
public string Data { get; set; }
public ImageBrush Image { get; set; }
2019-03-26 23:20:41 +01:00
public void RefreshImage()
2019-03-26 22:47:45 +01:00
{
2019-03-26 23:20:41 +01:00
Image = new ImageBrush(new BitmapImage(new Uri(ImagePath)));
2019-03-26 22:47:45 +01:00
}
}
}