private void BtnLoadPuzzle_Click(object sender, EventArgs e) { DialogLoadPuzzle loadDialog = new DialogLoadPuzzle(); // ToDo: Replace static hard coded folder reference with relative path loadDialog.InitialDirectory = @"..\..\FillAPixRobot\Puzzles"; if (loadDialog.ShowDialog() == DialogResult.OK) { _puzzleBoard = new PuzzleBoard(loadDialog.FileName); _robotBrain.Activate(new Point(0, 0), new Rectangle(new Point(0, 0), _puzzleBoard.Size)); _puzzleReferee = new PuzzleReferee(_puzzleBoard); } _gbxRobot.Enabled = _puzzleBoard != null; _btnRunInBackground.Enabled = _puzzleBoard != null; RefreshRobotSettings(); RefreshPlayGround(); RecreateCells(); }