示例#1
0
        private void PlayAgain_Click(object sender, EventArgs e)
        {
            StartMenu myForm = new StartMenu();

            myForm.Show();
            this.Hide();
        }
示例#2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            GameLevelDifficult gameForm = new GameLevelDifficult();
            StartMenu          myForm   = new StartMenu();
            Model      myModel          = new Model();
            Controller myController     = new Controller(gameForm, myModel);

            myForm.SetController(myController);
            myController.SetController();
            myController.Go();
            Application.Run(myForm);
        }