Пример #1
0
 private void OnBeforeNextClick(object sender, StiBeforePageChangedEventArgs e)
 {
     if (BeforeNextClick != null)
     {
         BeforeNextClick(sender, e);
     }
 }
Пример #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);
                    }
                }
            }
        }
Пример #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);
                    }
                }
            }
        }
Пример #4
0
 protected void OnBeforeNextClick(StiBeforePageChangedEventArgs e)
 {
     OnBeforeNextClick(this, e);
 }
Пример #5
0
 public void InvokeOnBeforeNextClick(StiBeforePageChangedEventArgs e)
 {
     OnBeforeNextClick(e);
 }