Exemple #1
0
 private void SetupControl(WizardControl p)
 {
     if (myParent != null)
     {
         WizardPageCollection pages = myParent.Pages;
         pages.ItemAdded   -= pages_Changed;
         pages.ItemChanged -= pages_Changed;
         pages.ItemDeleted -= pages_Changed;
     }
     myParent = p;
     if (myParent != null)
     {
         WizardPageCollection pages = myParent.Pages;
         pages.ItemAdded   += pages_Changed;
         pages.ItemChanged += pages_Changed;
         pages.ItemDeleted += pages_Changed;
     }
     Refresh();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="WizardPageCollection"/> class.
 /// </summary>
 /// <param name="owner">The <see cref="WizardControl"/> that this collection belongs to.</param>
 public WizardPageCollection(WizardControl owner)
 {
     Owner = owner;
 }