Forms http://img101.imageshack.us/img101/6970/stackoverflowquestion.png
I have 2 input textboxes that take a host or IP. When the user leaves an input box an event is fired that checks the input to see if it is actually a live computer. The results are then put into the appropriate label.
My question is, should I be using separate events for each input box, since they update different labels? Or, can I use 1 event and check who the caller was, then update the appropriate label?
As they update separate labels I’d go for two event handlers. It’s cleaner and doesn’t require any logic.
These can call a utility method that does the actual update if you want to keep that code in one place.