Exemple #1
0
 void wizardStepCollection_Removed(int index, WizardStep value)
 {
     value.Dispose();
     if (wizardStepCollection.Count != 1)
     {
         UpdateButtons();
     }
     else
     {
         OnSetFirstStep();
     }
 }
Exemple #2
0
        protected internal virtual void RemoveStep()
        {
            IDesignerHost service = (IDesignerHost)GetService(typeof(IDesignerHost));

            if (WizardControl == null || service == null)
            {
                return;
            }
            if (MessageBox.Show(WizardControl.FindForm(), "Are you sure you want to remove the step?", "Remove Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                WizardStep step = WizardControl.WizardSteps[WizardControl.CurrentStepIndex];
                WizardControl.WizardSteps.Remove(step);
                service.DestroyComponent(step);
                step.Dispose();
            }
            SelectWizard();
        }
Exemple #3
0
 void wizardStepCollection_Removed(int index, WizardStep value)
 {
     value.Dispose();
     if (this.wizardStepCollection.Count != 1)
     {
         this.UpdateButtons();
     }
     else
     {
         this.OnSetFirstStep();
     }
 }