Czoko_Smieciarka/Trunk/Interface/CzokoŚmieciarka.WPFv2/Models/GarbageCollector.cs

52 lines
1.7 KiB
C#
Raw Normal View History

2019-03-27 15:54:50 +01:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
2019-03-27 15:54:50 +01:00
using System.Linq;
using System.Runtime.CompilerServices;
2019-03-27 15:54:50 +01:00
using System.Text;
using System.Threading.Tasks;
2019-04-01 21:53:06 +02:00
using System.Windows.Controls;
2019-03-27 15:54:50 +01:00
using System.Windows.Media;
2019-04-01 23:10:31 +02:00
using System.Windows.Media.Imaging;
2019-03-27 15:54:50 +01:00
using CzokoŚmieciarka.DataModels.Interfaces.GarbageCollector;
using CzokoŚmieciarka.DataModels.Interfaces.TrashCans;
using CzokoŚmieciarka.DataModels.Models;
using CzokoŚmieciarka.WPFv2.Annotations;
2019-04-01 21:53:06 +02:00
using CzokoŚmieciarka.WPFv2.Interfaces;
2019-03-27 15:54:50 +01:00
namespace CzokoŚmieciarka.WPFv2.Models
{
class WPFGarbageCollector : AGarbageCollector, IWPFObject, INotifyPropertyChanged
2019-03-27 15:54:50 +01:00
{
2019-04-18 00:43:48 +02:00
public Image Image { get; set; }
//{
// get
// {
// return new Image
// {
// Source = new BitmapImage(new Uri(AppDomain.CurrentDomain.BaseDirectory + @"..\..\Images\garbageCollector.png"))
// };
// }
//}
2019-04-10 12:32:32 +02:00
public WPFGarbageCollector(Coords startPosition, IEnumerable<AGarbageCollectorContainer> trashContainers, int columns, int rows) : base(startPosition, trashContainers, columns, rows)
{
2019-04-18 00:43:48 +02:00
Image = new Image()
{
Source = new BitmapImage(new Uri(AppDomain.CurrentDomain.BaseDirectory + @"..\..\Images\garbageCollector.png"))
};
2019-03-27 15:54:50 +01:00
}
public event PropertyChangedEventHandler PropertyChanged;
[NotifyPropertyChangedInvocator]
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
2019-04-10 12:32:32 +02:00
2019-03-27 15:54:50 +01:00
}
}