Exemple #1
0
 public WizardControlCollectionModifier(Wizard wizard) {
     _wizard = wizard;
     if (!_wizard.DesignMode) {
         // Remember the ControlCollection so we don't need to access the
         // Controls property by GC during Dispose. Accessing this property has the
         // side-effect of creating the entire child controls on CompositeControl.
         _controls = _wizard.Controls;
         _originalError = _controls.SetCollectionReadOnly(null);
     }
 }