Design question!

Topics: CAB & Smart Client Software Factory
Feb 2, 2006 at 8:02 AM
originally posted by: ksunair

Hi All,

One more design question. I am developing an application, where I will have multiple user controls that need to be added and removed from one form (Only one winform). Can I do it with the CAB? Also if something happen in one control, will it be possible to trigger an event in another control?
I would also like to make this application to work online and offline as well so will it be easier to integrate smart client and updater block all in one?

Thanks.
Feb 3, 2006 at 8:09 AM
originally posted by: BradWilsonMSFT

Re: adding and removing user controls

Yes, CAB can support this. However, some of the things that are normally automated will need to be done by hand. For example, if you remove a control from a form, you should also remove it from the WorkItem; similarly, when you add a new control to a form, you should add it to the WorkItem.

Re: controls getting events from each other

Yes. Use EventBroker in CAB to achieve this (with the EventSubscription and EventPublication attributes).

Re: Updater block

The updater application block was designed for .NET 1.1. For .NET 2.0 applications, you should use ClickOnce for equivalent functionality.
Feb 3, 2006 at 8:19 AM
originally posted by: ksunair

Thank you and this is what I was looking for.