private void StartGame() { //String path = Directory.GetCurrentDirectory() + @"\..\..\"; String path = Directory.GetCurrentDirectory() + @"\"; loadButton.Source = new BitmapImage(new Uri(path + @"Images\SaveAndLoad\Load1.png")); saveButton.Source = new BitmapImage(new Uri(path + @"Images\SaveAndLoad\Save1.png")); resetButton.Source = new BitmapImage(new Uri(path + @"Images\RestartArrows\RestartArrow1.png")); imageFlag1.Source = new BitmapImage(new Uri(path + @"Images\Flags\RedFlag.png")); imageFlag2.Source = new BitmapImage(new Uri(path + @"Images\Flags\GreenFlag.png")); BitmapImage tmp = new BitmapImage(new Uri(path + @"Images\Cells.png")); ImageBrush brush = new ImageBrush(tmp); RootGrid.Background = brush; _game = new Game(PointGrid); _game.Start(); ShowState(); this.Icon = new BitmapImage(new Uri(path + @"Images\icon.ico")); MessageBox.Show("The game is began!"); }