private void PlayAgain_Click(object sender, EventArgs e) { StartMenu myForm = new StartMenu(); myForm.Show(); this.Hide(); }
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); }