private void Step5_ShowStep(object sender, TSWizards.ShowStepEventArgs e) { Step2 step2 = Wizard.GetStep("Step2") as Step2; System.Collections.Specialized.StringCollection order = step2.GetOrder(); itemsPrepared.Items.Clear(); foreach (string str in order) { itemsPrepared.Items.Add(str); } }
private void Step3_ShowStep(object sender, TSWizards.ShowStepEventArgs e) { System.Text.StringBuilder sb = new System.Text.StringBuilder(); Step2 step2 = Wizard.GetStep("Step2") as Step2; if (step2 == null) { throw new ApplicationException("Step2 of the wizard wasn't really step2"); } StringCollection order = step2.GetOrder(); foreach (string item in order) { sb.AppendFormat("{0},\r\n", item); } orderConfirm.Text = sb.ToString(); }
private void DoWork() { Step2 step2 = Wizard.GetStep("Step2") as Step2; if( step2 == null ) { throw new ApplicationException("Step2 of the wizard wasn't really step2"); } StringCollection order = step2.GetOrder(); if( order.Count > 0 ) { BeginPreparingOrder(order.Count); foreach(string item in order) { Preparing(item); Thread.Sleep(1000); Prepared(); } } }