开发者

MovePrevious & MoveNext iterator in C#

开发者 https://www.devze.com 2022-12-21 21:06 出处:网络
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, su

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号