2019-03-20 16:02:05 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Windows.Media;
|
|
|
|
|
using System.Windows.Media.Imaging;
|
|
|
|
|
using CzokoŚmieciarka.DataModels.Models;
|
2019-03-26 22:47:45 +01:00
|
|
|
|
using CzokoŚmieciarka.WPF.Interfaces;
|
2019-03-20 16:02:05 +01:00
|
|
|
|
|
|
|
|
|
namespace CzokoŚmieciarka.WPF.Models
|
|
|
|
|
{
|
2019-03-26 22:47:45 +01:00
|
|
|
|
public class Road: AObject
|
2019-03-20 16:02:05 +01:00
|
|
|
|
{
|
2019-03-26 22:47:45 +01:00
|
|
|
|
public Road(int columns, Coords location, string imagePath)
|
2019-03-20 16:02:05 +01:00
|
|
|
|
{
|
2019-03-26 22:47:45 +01:00
|
|
|
|
Location = new Coords(location.X, location.Y * columns);
|
2019-03-20 16:02:05 +01:00
|
|
|
|
ImagePath = imagePath;
|
|
|
|
|
Image = new ImageBrush(new BitmapImage(new Uri(ImagePath)));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|