In an application I'm working on I've implemented a MVC pattern to use different views for displaying parts of a UI. In an overall UI there's an entry box, in which the user can give commands or queries. The idea is that this entry box generates a few basic events, like "ValidEntry", "InvalidEntry" and "EmptyEntry". Each one of the controller parts should respond to these events. I do not want every controller that is subscribed to the ValidEntry event to respond, only the one that is active.
I could add an "if" to every eventhandler that checks if "this.IsActive" is true and update that on every switch of views. Or add different events for all different controllers. Any better ideas on this problem?