31 lines
831 B
C#
31 lines
831 B
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.Models;
|
|
using CzokoŚmieciarka.DataModels.Interfaces.Road;
|
|
using CzokoŚmieciarka.WPFv2.Interfaces;
|
|
|
|
namespace CzokoŚmieciarka.WPFv2.Models
|
|
{
|
|
class Road : IWPFObject, IRoad
|
|
{
|
|
public string ImagePath { get; set; }
|
|
public Image Image { get; set; }
|
|
public Coords Coords { get; set; }
|
|
|
|
public Road()
|
|
{
|
|
ImagePath = AppDomain.CurrentDomain.BaseDirectory + @"..\..\Images\intersection.png";
|
|
Image = new Image
|
|
{
|
|
Source = new BitmapImage(new Uri(ImagePath))
|
|
};
|
|
}
|
|
}
|
|
}
|