I have been writing winforms for a while now and I still haven't worked out a decent way of tracking what controls are active at a given time depending on particular conditions, for example, are all text boxes non null or white space, has the appropriate options been selected, in which case enable the OK button.
I toyed around with writing a enumeration for each control and a class with bool attributes for each respective control and when a text box text changed event occurs for example, I called a single method with the control name and value, this method would then set the bool attribute for the control and check to see what controls are now active, given what controls are valid.
My question is, the system I described turned out to be quite messy, can anyone describe a better way, or perhaps know of a site which explains a good way to do this, I have already done a search of the internet and can find very little.
Anyone able to assist please, thanks.