27 lines
713 B
C#
27 lines
713 B
C#
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; }
|
|
|
|
public ImageBrush RefreshImage()
|
|
{
|
|
ImageBrush image = new ImageBrush(new BitmapImage(new Uri(ImagePath)));
|
|
return image;
|
|
}
|
|
}
|
|
}
|