CapDemo.Open_Game.OutOfQuestion C# (CSharp) Метод

OutOfQuestion() публичный Метод

public OutOfQuestion ( ) : void
Результат void
        public void OutOfQuestion()
        {
            if (ExistPM() == true)
            {
                if (NumofQuestionPM() == 0 && NumofQuestionInPhase(records.ElementAt(team).IDPhase) == 0)
                {
                    axWindowsMediaPlayer1.URL = (Directory.GetCurrentDirectory()) + "\\Sound\\Click.wav";
                    axWindowsMediaPlayer1.Ctlcontrols.play();

                    lblHint.Text = guideline[2].ToString();
                    step = 2;
                    team++;
                    if (team == records.Count)
                    {
                        team = 0;
                    }
                    GoPlayer();

                }
                //sound to player's turn
            }
            else
            {
                if (NumofQuestionInPhase(records.ElementAt(team).IDPhase) == 0)
                {
                    try
                    {
                        axWindowsMediaPlayer1.URL = (Directory.GetCurrentDirectory()) + "\\Sound\\Click.wav";
                        axWindowsMediaPlayer1.Ctlcontrols.play();
                    }
                    catch (Exception)
                    {
                    }

                    lblHint.Text = guideline[2].ToString();
                    step = 2;
                    team++;
                    if (team == records.Count)
                    {
                        team = 0;
                    }
                    GoPlayer();
                }
            }
        }