CapDemo.GUI.User_Controls.Team_Setting.checkTeamEmpty C# (CSharp) Method

checkTeamEmpty() public method

public checkTeamEmpty ( ) : bool
return bool
        public bool checkTeamEmpty()
        {
            int j = 0;
            foreach (Add_Team item in flp_Team.Controls)
            {
                if (item.txt_TeamName.Text.Trim() == "" || item.txt_TeamScore.Text.Trim() == "" || item.btn_Paint.BackColor.Name == "" || item.txt_Sequence.Text.Trim() == "")
                {
                    j++;
                }
            }
            if (j > 0)
            {
                return true;
            }
            else
            {
                return false;
            }
        }