tags:

views:

322

answers:

1

Hi,

I have implement Wizard type of screen windows forms application. In the wizard screen contains Back,Next & Finish buttons. When i click Next button i have to launch next screen in Wizard form, suppose i click Back button i have to launch previous screen in to Wizard Form. I don't know how to handle screen information in Back&Next button. currently i have all screen informations in Dictionary. But i don't know how to iterate dictionary for MoveNext & MovePrevious. Dictionary enumerator contains MoveNext() method but not contain MovePrevious() method. How to handle Back & Next button?

A: 

Have an integer that symbolizes your position in the wizard. Increment or decrement the integer, and load the appropriate screen.

Alternatively, use a LinkedList instead of a dictionary.

Ilia Jerebtsov
Thans for the information. It is very useful for me
Ravi