阅读背景:

处理MVC中共享控件的事件

来源:互联网 

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. In an application I'm working on I've implement




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: