void MainMenu_OnEnterChoice(ChoiceBarred choice)
        {
            switch (choice.Name)
            {
            case "play":
                //Engine.Instance.Audio.StopAllMusic();
                Engine.Instance.ActiveState = new GameOptions();
                Engine.Instance.Audio.PlaySound("levelUp");
                break;

            case "fullscreen":
                Engine.Instance.Graphics.IsFullScreen = !Engine.Instance.Graphics.IsFullScreen;;
                Engine.Instance.Graphics.ApplyChanges();
                break;

            case "credits":
                //Engine.Instance.Audio.StopAllMusic();
                Engine.Instance.ActiveState = new Credits();
                Engine.Instance.Audio.PlaySound("levelUp");
                break;

            case "exit":
                Engine.Instance.Game.Exit();
                break;

            default:
                throw new CaseStatementMissingException();
            }
        }
 void MainMenu_OnEnterChoice(ChoiceBarred choice)
 {
     if (choice.Name == "back")
     {
         Engine.Instance.Audio.PlaySound("levelUp");
         Engine.Instance.ActiveState = new MainMenu();
     }
     else if (choice.Name == "play")
     {
         Level.Instance = new Level((eGameMode)Enum.Parse(typeof(eGameMode), ChoiceValues["mode"], true));
         Level.Instance.Init();
         Level.Instance.OriginalColors = ChoiceValues["colors"] == "Yes";
         Level.Instance.SetLevel(int.Parse(ChoiceValues["level"]));
         Engine.Instance.ActiveState = Level.Instance;
         Engine.Instance.Audio.PlaySound("countdown");
     }
 }