|
项目描述: |
Frustrated that you can't declare an array of your objects using WithEvents? Here are two designs, that both allow this functionality, if not the specific syntax you're accustomed to. The first design uses a notification interface, to be implemented by your client objects, through which your event-raising objects can notify the clients as needed. The second design uses an intermediate notification object, and totally eliminates all circular reference issues.
对不能声明一个支持事件的对象的数组感到失望吗?这里提供两种设计,都支持这一功能,如果不符合你的语法,可以选择。第一种设计使用了一个通知接口,可以由你的客户端来实现,通过它可以按需要触发客户端需要的事件。第二种设计使用了一个中间通知对象,完全消除了所有的循环引用问题。
来源: http://www.mvps.org/vb/ |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
ObjArrays |
 1.0  |
2004-04-18 |
下载 |
|
|