Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- bool isSolved = true; //Solve Variable
- foreach (TextBox tb in this.Controls.OfType<TextBox>()) //Iterates through all textboxes
- {
- if (tb.Text == null) //Checks to see if one of them is null
- {
- isSolved = false; //Sets bool to false
- }
- }
- return isSolved; //Returns bool
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement