コード例 #1
0
        private void startGameButton_Click(object sender, EventArgs e)
        {
            GameForm gameForm = new GameForm(getGame());

            this.Close();
            gameForm.ShowDialog();
        }
コード例 #2
0
        public static void Main()
        {
            Application.EnableVisualStyles();
            ConfigForm configForm = new ConfigForm();

            configForm.ShowDialog();
            Game     game     = configForm.getGame();
            GameForm gameForm = new GameForm(game);

            gameForm.ShowDialog();
        }