Exemple #1
0
 public void Remove(WizardPanel panel)
 {
     if (this._wizardPanels.Contains(panel))
     {
         this._owner._wizardPanelContainer.Controls.Remove(panel);
         this._wizardPanels.Remove(panel);
     }
 }
Exemple #2
0
 public int IndexOf(WizardPanel panel)
 {
     int count = this.Count;
     for (int i = 0; i < count; i++)
     {
         if (this[i] == panel)
         {
             return i;
         }
     }
     return -1;
 }
Exemple #3
0
 public void AddRange(WizardPanel[] panels)
 {
     foreach (WizardPanel panel in panels)
     {
         this.Add(panel);
     }
 }
Exemple #4
0
 public bool Contains(WizardPanel panel)
 {
     return (this.IndexOf(panel) != -1);
 }
Exemple #5
0
 public void Add(WizardPanel panel)
 {
     if (!this._wizardPanels.Contains(panel))
     {
         panel.Dock = DockStyle.Fill;
         panel.SetWizardForm(this._owner);
         panel.Visible = false;
         this._wizardPanels.Add(panel);
         this._owner._wizardPanelContainer.Controls.Add(panel);
     }
 }