OnObjectAdded for RootWorkItem ?

Topics: CAB & Smart Client Software Factory
Jun 28, 2006 at 10:08 PM
originally posted by: KayLerch


I would like to react on the event, when an Item is added to the RootWorkItem. When I create my own WorkItems I can solve this issue by overwriting the OnObjectedAdded-method. But I can't find anything like this for the RootWorkItem.

Do you have an idea how to solve this task? It's important to me.

Thanks so far
Kay Lerch
Jun 29, 2006 at 6:07 AM
originally posted by: ChrisHolmes

Yes, there's a way to do this. You need to implement your own RootWorkItem (I call mine the ShellWorkItem). You can then override the OnObjectAdded method in that RootWorkItem.

Then use that in the ShellApplication when you create it:

public class ShellApplication : FormShellApplication<ShellWorkItem, ShellForm>
Jun 29, 2006 at 10:31 PM
originally posted by: KayLerch

thanks so far. that's the same solution I found shortly after my post in one of the quickstarts.