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 cont开发者_如何学Goain MovePrevious() method. How to handle Back & Next button?
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.
精彩评论