|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Event handling in CollectionsI have a class that inherits from NameObjectCollectionBase. For
simplicity, the collection is called reports, and the individual objects in the collect are called report items. Each report item has a property called .value that throws an event everytime the value changes. What I would like to know is if there is a way to create event handlers at the collection level. Otherwords, can reports handle events for the report item collection? Any thoughts? I found the solution I was looking for.
http://groups.google.com/group/microsoft.public.dotnet.framework/browse_thread/thread/46215ddab25ed956/792e407b54874774?lnk=st&q=event+collection+.net&rnum=4&hl=en#792e407b54874774 gordigor wrote: Show quote > I have a class that inherits from NameObjectCollectionBase. For > simplicity, the collection is called reports, and the individual > objects in the collect are called report items. Each report item has a > property called .value that throws an event everytime the value > changes. > > What I would like to know is if there is a way to create event handlers > at the collection level. Otherwords, can reports handle events for the > report item collection? Any thoughts? |
|||||||||||||||||||||||