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.GeneralModels.Models; using CzokoŚmieciarka.DataModels.Models; namespace CzokoŚmieciarka.WPF.Models { public class GarbageCollectorWPF : IObject { public Coords Location { get; set; } public void Move(int columns, GarbageCollector garbageCollector) { Location.X = garbageCollector.Position.X; Location.Y = garbageCollector.Position.Y * columns; } public string ImagePath { get; set; } public string Data { get; set; } public ImageBrush Image { get; set; } public GarbageCollectorWPF(Coords location, string imagePath) { Location = location; ImagePath = imagePath; Image = new ImageBrush(new BitmapImage(new Uri(ImagePath))); } } }