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

42 lines
1.3 KiB
C#
Raw Normal View History

2019-03-27 15:54:50 +01:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2019-04-01 21:58:40 +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;
using CzokoŚmieciarka.DataModels.Interfaces.TrashCans;
using CzokoŚmieciarka.DataModels.Models;
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
{
2019-04-01 21:53:06 +02:00
class WPFHouse : IGarbageLocalization, IWPFObject
2019-03-27 15:54:50 +01:00
{
public Coords Coords { get; set; }
2019-03-27 15:54:50 +01:00
public IEnumerable<ATrashCan> TrashCans { get; set; }
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\house.png"))
// };
// } }
2019-03-27 15:54:50 +01:00
2019-04-01 23:10:31 +02:00
public WPFHouse(Coords coords, IEnumerable<ATrashCan> trashCans)
2019-03-27 15:54:50 +01:00
{
2019-04-18 00:43:48 +02:00
Image = new Image()
{
2019-04-21 15:05:06 +02:00
Source = new BitmapImage(new Uri(AppDomain.CurrentDomain.BaseDirectory + @"..\..\Images\house.png")),
Width = 100,
Height = 100
2019-04-18 00:43:48 +02:00
};
2019-04-01 23:10:31 +02:00
TrashCans = trashCans;
Coords = coords;
2019-03-27 15:54:50 +01:00
}
}
}