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;
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;
using CzokoŚmieciarka.DataModels.GeneralModels.Models;
using CzokoŚmieciarka.DataModels.Interfaces;
using CzokoŚmieciarka.DataModels.Interfaces.TrashCans;
using CzokoŚmieciarka.DataModels.Models;
using CzokoŚmieciarka.WPF.Models;
namespace CzokoŚmieciarka.WPF
{
///
/// Interaction logic for MainWindow.xaml
///
public partial class MainWindow : Window
{
public List Objects = new List();
public GarbageCollector garbageCollector = new GarbageCollector(new Coords(0,0), new List());
public MainWindow()
{
InitializeComponent();
Objects.Add(new House()
{
ImagePath = AppDomain.CurrentDomain.BaseDirectory + @"..\..\Images\house.png",
Image = new ImageBrush(new BitmapImage(new Uri(AppDomain.CurrentDomain.BaseDirectory + @"..\..\Images\house.png"))),
Location = new Coords(3, 2),
Data = "House"
});
Objects.Add(new House()
{
ImagePath = AppDomain.CurrentDomain.BaseDirectory + @"..\..\Images\house.png",
Image = new ImageBrush(new BitmapImage(new Uri(AppDomain.CurrentDomain.BaseDirectory + @"..\..\Images\house.png"))),
Location = new Coords(5, 8),
Data = "House"
});
Objects.Add(new House()
{
ImagePath = AppDomain.CurrentDomain.BaseDirectory + @"..\..\Images\house.png",
Image = new ImageBrush(new BitmapImage(new Uri(AppDomain.CurrentDomain.BaseDirectory + @"..\..\Images\house.png"))),
Location = new Coords(7, 5),
Data = "House"
});
garbageCollector.Position.X += 1;
this.DataContext = new Board(9, 9, Objects, garbageCollector);
}
}
}