wizard creation strategy

Jan 28, 2011 at 12:20 PM

Hi, I'm trying to develop a wizard using IoC. This is my first look to the framework and I would like to ask how to implement it.

So I create some forms and inherit them from SmartPart. Next I see two different ways. The fist one is to create all these forms into ContainerForm constructor for example or I can create each form only when it is required and close (or do not close?) when it is moved to the next one. Which way is better if I need about 100 forms? Probably there is a better way?

In first case it will be like

public ContainerForm() {

Somewhere where it needs:

ISmartPart view = RootWorkItem.SmartParts.Get("view:MySmartPartA");

In second case I should sure if MySmartPartA is already exist in the RootWorkItem.SmartParts collection and create a new instance if it is not.
And probably close that view when is is hidden.
Aug 30, 2011 at 3:12 PM

Take a look at the new BasicWizard sample in the source tree.