protected virtual void OnWizardPageMoved(ControlMovedEventArgs e) { if (this.WizardPageMoved != null) { this.WizardPageMoved.Invoke(this, e); } }
private void wizard_WizardPageMoved(object sender, ControlMovedEventArgs e) { WizardPage wizardPage = (WizardPage)e.Control; Control control = this.tableLayoutPanel.Controls[wizardPage.Name + "Label"]; if (control != null) { this.tableLayoutPanel.SuspendLayout(); try { this.RemovePageLabelControl(control); this.InsertPageLabelControl(control, e.NewIndex); } finally { this.tableLayoutPanel.ResumeLayout(); } } }
private void wizardPages_ControlMoved(object sender, ControlMovedEventArgs e) { this.OnWizardPageMoved(e); }