Exemplo n.º 1
0
        private void startButton_Click(object sender, RoutedEventArgs e)
        {
            GameWindow gw = new GameWindow();

            gw.Show();
            ssw.Close();
            Close();
        }
Exemplo n.º 2
0
        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            timer.Stop();
            ShapeSelectorWindow ssw = new ShapeSelectorWindow(Tetromino.POSSIBLE_TETROMINOS);

            ssw.ShowDialog();
            ssw.Close();
            Tetromino.GenerateShapes(ssw.ExportSelection());
            timer.Start();
        }