public MazeWindow(int maze_width, int maze_height) { _instance = this; InitializeComponent(); _maze = new Maze(maze_width, maze_height); this.myCanvas.Children.Add(_maze); }
private void btnEnterMaze_Click(object sender, RoutedEventArgs e) { _mazeWindow = new MazeWindow((int)this.sldWidth.Value, (int)this.sldHeight.Value); _mazeWindow.Show(); }