Ejemplo n.º 1
0
 private void ChangeToMenu()
 {
     menu.Show();
     levelMenu.Hide();
     gameplay.Hide();
     complete.Hide();
 }
Ejemplo n.º 2
0
        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;
            }
        }