2019-03-20 12:34:03 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
2019-03-20 16:02:05 +01:00
|
|
|
|
using System.Windows.Media;
|
2019-03-20 18:27:11 +01:00
|
|
|
|
using System.Windows.Media.Imaging;
|
2019-03-20 12:34:03 +01:00
|
|
|
|
using CzokoŚmieciarka.DataModels.Models;
|
2019-03-26 22:47:45 +01:00
|
|
|
|
using CzokoŚmieciarka.WPF.Interfaces;
|
2019-03-20 12:34:03 +01:00
|
|
|
|
|
|
|
|
|
namespace CzokoŚmieciarka.WPF.Models
|
|
|
|
|
{
|
2019-03-26 22:47:45 +01:00
|
|
|
|
public class House : AObject
|
2019-03-20 12:34:03 +01:00
|
|
|
|
{
|
2019-03-27 01:11:14 +01:00
|
|
|
|
public List<Trash> Trashes = new List<Trash>();
|
|
|
|
|
public House(int columns, Coords location, List<Trash> trashes)
|
2019-03-20 18:27:11 +01:00
|
|
|
|
{
|
2019-03-27 01:11:14 +01:00
|
|
|
|
Trashes = trashes;
|
2019-03-20 18:27:11 +01:00
|
|
|
|
ImagePath = AppDomain.CurrentDomain.BaseDirectory + @"..\..\Images\house.png";
|
|
|
|
|
Image = new ImageBrush(new BitmapImage(new Uri(ImagePath)));
|
|
|
|
|
Location = new Coords(location.X, location.Y*columns);
|
2019-03-27 01:11:14 +01:00
|
|
|
|
Data = String.Format("House\n{0}: {1}\n{2}: {3}\n{4}: {5}\n{6}: {7}", Trashes[0].Type.ToString(), Trashes[0].Weight, Trashes[1].Type.ToString(), Trashes[1].Weight, Trashes[2].Type.ToString(), Trashes[2].Weight, Trashes[3].Type.ToString(), Trashes[3].Weight);
|
2019-03-20 18:27:11 +01:00
|
|
|
|
}
|
2019-03-20 12:34:03 +01:00
|
|
|
|
}
|
|
|
|
|
}
|