From c2f5acee5883459c370b9293726df812afa24fb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dulski?= Date: Mon, 8 Apr 2019 15:51:08 +0200 Subject: [PATCH] =?UTF-8?q?Dodano=20przej=C5=9Bcie=20mi=C4=99dzy=20domkami?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CzokoŚmieciarka.WPFv2/MainWindow.xaml.cs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Trunk/Interface/CzokoŚmieciarka.WPFv2/MainWindow.xaml.cs b/Trunk/Interface/CzokoŚmieciarka.WPFv2/MainWindow.xaml.cs index 9cd5c65..1948c70 100644 --- a/Trunk/Interface/CzokoŚmieciarka.WPFv2/MainWindow.xaml.cs +++ b/Trunk/Interface/CzokoŚmieciarka.WPFv2/MainWindow.xaml.cs @@ -80,12 +80,14 @@ namespace CzokoŚmieciarka.WPFv2 } IEnumerable trashCans = new List(); - WPFHouse house = new WPFHouse(new Coords(i, i), trashCans); - Objects[i, i] = house; - Grid.SetRow(Objects[i, i].Image, i); - Grid.SetColumn(Objects[i, i].Image, i); - Board.Children.Add(Objects[i, i].Image); - + if(i != 6) + { + WPFHouse house = new WPFHouse(new Coords(i, i), trashCans); + Objects[i, i] = house; + Grid.SetRow(Objects[i, i].Image, i); + Grid.SetColumn(Objects[i, i].Image, i); + Board.Children.Add(Objects[i, i].Image); + } } Objects[2,7] = new WPFDump(new TypeOfGarbage(GarbageType.Glass,1,1), 10000,new Coords(2,7)); Grid.SetColumn(Objects[2, 7].Image, 2);