private void ChangeToMenu() { menu.Show(); levelMenu.Hide(); gameplay.Hide(); complete.Hide(); }
private void LevelMen(object sender, EventArgs e) { Button btn = (Button)sender; switch (btn.Text) { case "Level 1": Level = 1; LevelMenu.Hide(); this.Size = new Size(1000, 1000); SetPanStuff(Tmins.ToString() + " : " + Tsecs.ToString() + "0"); EnemiesPictureBoxesMaker(); CenterWindow(); break; case "Level 2": Level = 2; LevelMenu.Hide(); this.Size = new Size(1000, 1000); SetPanStuff(""); EnemiesPictureBoxesMaker(); CenterWindow(); break; } }