Czoko_Smieciarka/Trunk/Interface/CzokoŚmieciarka.WPF/MainWindow.xaml.cs

43 lines
1.1 KiB
C#
Raw Normal View History

2019-03-13 16:45:38 +01:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
2019-03-13 16:45:38 +01:00
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
2019-03-20 12:34:03 +01:00
using CzokoŚmieciarka.DataModels.Models;
2019-03-13 16:45:38 +01:00
using CzokoŚmieciarka.WPF.Models;
namespace CzokoŚmieciarka.WPF
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
2019-03-20 12:34:03 +01:00
public List<IObject> Objects = new List<IObject>();
2019-03-13 16:45:38 +01:00
public MainWindow()
{
2019-03-20 12:34:03 +01:00
InitializeComponent();
Objects.Add(new Home()
{
ImagePath = @"C:\Users\s434678\Source\Repos\Czoko_Smieciarka\Trunk\Interface\CzokoŚmieciarka.WPF\Images\house.png",
Location = new Coords(10, 12)
});
this.DataContext = new Board(8, 10, Objects);
2019-03-13 16:45:38 +01:00
}
2019-03-13 16:45:38 +01:00
}
}