J
Jens Weiermann
Hi,
I have a basic design question here: I've created a custom (typed)
collection by deriving from CollectionBase. Now I need to have "owned"
collection items to be able to notify the collection if properties of the
items change. By "owned" I mean that the items need to "know" which
collection (if any) they're in. But it must also be possible that these
items live "outside" a collection.
My first thought was to override the OnInsertComplete, OnRemoveComplete and
OnSetComplete methods and write to the added/removed/set items there.
Is there any better approach to this?
Thanks!
Jens
I have a basic design question here: I've created a custom (typed)
collection by deriving from CollectionBase. Now I need to have "owned"
collection items to be able to notify the collection if properties of the
items change. By "owned" I mean that the items need to "know" which
collection (if any) they're in. But it must also be possible that these
items live "outside" a collection.
My first thought was to override the OnInsertComplete, OnRemoveComplete and
OnSetComplete methods and write to the added/removed/set items there.
Is there any better approach to this?
Thanks!
Jens