Пример #1
0
 private void labelCompletteLevelNew_Click(object sender, EventArgs e)
 {
     if (labelLevel.Text.Equals("Level I"))
     {
         FormGame formGameNextLevel = new FormGame(new Level2());
         formGameNextLevel.Show();
         this.Hide();
     }
     else
     if (labelLevel.Text.Equals("Level II"))
     {
         FormGame formGameNextLevel = new FormGame(new Level3());
         formGameNextLevel.Show();
         this.Hide();
     }
     else
     if (labelLevel.Text.Equals("Level III"))
     {
         FormGame formGameNextLevel = new FormGame(new Level4());
         formGameNextLevel.Show();
         this.Hide();
     }
 }