private void ButtonNext_Click(object sender, RoutedEventArgs e) { if (!isSizeChanged) { maze.StepProcess(); maze.MakeMaze(); } }