private void ButtonReset_Click(object sender, RoutedEventArgs e) { if (isSizeChanged) { isSizeChanged = false; maze.Reset(); } maze.MakeMaze(); }
private void MazeField_Loaded(object sender, RoutedEventArgs e) { maze = new Maze(10, 10, (sender as Grid)); maze.MakeMaze(); }