Exemplo n.º 1
0
        private void GenerateMaze()
        {
            mainStackPanel.Children.Clear();
            InitializeComponent();
            ScreenOrginizer screenOrginizer = new ScreenOrginizer(mazeWindow.Width, mazeWindow.Height, Int32.Parse(mazeRows.Text), Int32.Parse(mazeCols.Text));

            screenOrginizer.CreateMaze(mainStackPanel);
            generateMazeButton.IsEnabled = true;
            if (againstTheClockMode)
            {
                AgainstTheClock();
                _timer.Start();
            }
        }
Exemplo n.º 2
0
 public MainWindow()
 {
     InitializeComponent();
     ScreenOrginizer screenOrginizer = new ScreenOrginizer(mazeWindow.Width, mazeWindow.Height, Int32.Parse(mazeRows.Text), Int32.Parse(mazeCols.Text));
 }