Czoko_Smieciarka/Trunk/Interface/CzokoŚmieciarka.WPFv2/Models/Road.cs

29 lines
730 B
C#
Raw Normal View History

2019-04-01 21:53:06 +02:00
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.WPFv2.Interfaces;
namespace CzokoŚmieciarka.WPFv2.Models
{
class Road : IWPFObject
{
public string ImagePath { get; set; }
public Image Image { get; set; }
2019-04-01 23:10:31 +02:00
public Road()
2019-04-01 21:53:06 +02:00
{
2019-04-01 23:10:31 +02:00
ImagePath = AppDomain.CurrentDomain.BaseDirectory + @"..\..\Images\intersection.png";
Image = new Image
{
Source = new BitmapImage(new Uri(ImagePath))
};
2019-04-01 21:53:06 +02:00
}
}
}