Example #1
0
 private void OnBeforeNextClick(object sender, StiBeforePageChangedEventArgs e)
 {
     if (BeforeNextClick != null)
     {
         BeforeNextClick(sender, e);
     }
 }
Example #2
0
        private void OnNextClick(object sender, EventArgs e)
        {
            if (SelectedIndex < this.Pages.Count - 1)
            {
                StiBeforePageChangedEventArgs ee = new StiBeforePageChangedEventArgs(
                    this.Pages[this.SelectedIndex] as StiWizardPage,
                    this.Pages[this.SelectedIndex + 1] as StiWizardPage);
                InvokeOnBeforeNextClick(ee);

                if (!ee.Cancel)
                {
                    SelectedIndex++;
                    UpdateWizardState();

                    if (NextClick != null)
                    {
                        NextClick(sender, e);
                    }
                }
            }
        }
Example #3
0
        private void OnBackClick(object sender, EventArgs e)
        {
            if (SelectedIndex > 0)
            {
                StiBeforePageChangedEventArgs ee = new StiBeforePageChangedEventArgs(
                    this.Pages[this.SelectedIndex] as StiWizardPage,
                    this.Pages[this.SelectedIndex - 1] as StiWizardPage);
                InvokeOnBeforeBackClick(ee);

                if (!ee.Cancel)
                {
                    SelectedIndex--;
                    UpdateWizardState();

                    if (BackClick != null)
                    {
                        BackClick(sender, e);
                    }
                }
            }
        }
Example #4
0
 protected void OnBeforeNextClick(StiBeforePageChangedEventArgs e)
 {
     OnBeforeNextClick(this, e);
 }
Example #5
0
 public void InvokeOnBeforeNextClick(StiBeforePageChangedEventArgs e)
 {
     OnBeforeNextClick(e);
 }