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

24 lines
682 B
C#
Raw Normal View History

2019-03-20 12:34:03 +01:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
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-20 18:27:11 +01:00
public House(int columns, Coords location)
{
ImagePath = AppDomain.CurrentDomain.BaseDirectory + @"..\..\Images\house.png";
Image = new ImageBrush(new BitmapImage(new Uri(ImagePath)));
Location = new Coords(location.X, location.Y*columns);
Data = "House";
}
2019-03-20 12:34:03 +01:00
}
}