예제 #1
0
 private void OnCanNext(object sender, StiCanNextEventArgs e)
 {
     if (CanNext != null)
     {
         CanNext(sender, e);
     }
 }
예제 #2
0
        public void UpdateWizardState()
        {
            if (SelectedIndex == 0)
            {
                BackButton.Enabled = false;
            }
            else
            {
                BackButton.Enabled = true;
            }

            if (SelectedIndex == this.Pages.Count - 1)
            {
                NextButton.Enabled   = false;
                FinishButton.Enabled = true;
                FinishButton.Focus();
            }
            else
            {
                StiCanNextEventArgs e = new StiCanNextEventArgs();
                InvokeOnCanNext(e);
                NextButton.Enabled = e.CanNext;

                StiCanFinishEventArgs ee = new StiCanFinishEventArgs();
                InvokeOnCanFinish(ee);
                FinishButton.Enabled = ee.CanFinish;
            }
        }
예제 #3
0
 protected void OnCanNext(StiCanNextEventArgs e)
 {
     OnCanNext(this, e);
 }
예제 #4
0
 public void InvokeOnCanNext(StiCanNextEventArgs e)
 {
     OnCanNext(e);
 }