Ejemplo n.º 1
0
 protected virtual void OnWizardButtonClick(WizardButtonClickEventArgs e)
 {
     if (WizardButtonClick != null)
     {
         WizardButtonClick(this, e);
     }
 }
Ejemplo n.º 2
0
        protected void WizCancelButton_Click(object sender, EventArgs e)
        {
            WizardButtonClickEventArgs wizEvt = new WizardButtonClickEventArgs(WizardButton.Cancel);

            OnWizardButtonClick(wizEvt);
            if (wizEvt.Cancel)
            {
                this.DialogResult = DialogResult.None;
            }
        }
Ejemplo n.º 3
0
        protected void WizBackButton_Click(object sender, EventArgs e)
        {
            WizardButtonClickEventArgs wizEvt = new WizardButtonClickEventArgs(WizardButton.Back);

            OnWizardButtonClick(wizEvt);
            if (wizEvt.Cancel)
            {
                return;
            }

            Int32 newIndex = CurrentPage.PageIndex - 1;

            CurrentPage = Pages[newIndex];
        }