Пример #1
0
        private void ButtonReset_Click(object sender, RoutedEventArgs e)
        {
            if (isSizeChanged)
            {
                isSizeChanged = false;
                maze.Reset();
            }

            maze.MakeMaze();
        }
Пример #2
0
 private void MazeField_Loaded(object sender, RoutedEventArgs e)
 {
     maze = new Maze(10, 10, (sender as Grid));
     maze.MakeMaze();
 }