CapDemo.GUI.ViewQuestionMultiple.checkAnswerEmpty C# (CSharp) Method

checkAnswerEmpty() public method

public checkAnswerEmpty ( ) : bool
return bool
        public bool checkAnswerEmpty()
        {
            int i = 0;
            foreach (Answer_MultiSelect item in flp_Answer.Controls)
            {
                if (item.txt_AnswerContent.Text.Trim() == "")
                {
                    i++;
                }
            }
            if (i > 0)
            {
                return true;
            }
            else
            {
                return false;
            }
        }