40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using CzokoŚmieciarka.DataModels.Interfaces;
|
|
using CzokoŚmieciarka.DataModels.Interfaces.TrashCans;
|
|
using CzokoŚmieciarka.DataModels.Models;
|
|
using CzokoŚmieciarka.WPFv2.Interfaces;
|
|
|
|
namespace CzokoŚmieciarka.WPFv2.Models
|
|
{
|
|
class WPFHouse : IGarbageLocalization, IWPFObject
|
|
{
|
|
public Coords Coords { get; set; }
|
|
public IEnumerable<ATrashCan> TrashCans { get; set; }
|
|
public Image Image { get; set; }
|
|
//{ get {
|
|
// return new Image
|
|
// {
|
|
// Source = new BitmapImage(new Uri(AppDomain.CurrentDomain.BaseDirectory + @"..\..\Images\house.png"))
|
|
// };
|
|
// } }
|
|
|
|
|
|
public WPFHouse(Coords coords, IEnumerable<ATrashCan> trashCans)
|
|
{
|
|
Image = new Image()
|
|
{
|
|
Source = new BitmapImage(new Uri(AppDomain.CurrentDomain.BaseDirectory + @"..\..\Images\house.png"))
|
|
};
|
|
TrashCans = trashCans;
|
|
Coords = coords;
|
|
}
|
|
}
|
|
}
|