Example #1
0
 protected internal virtual void OnBeforeAdd(WizardPageCollection collection)
 {
     if (!_removing && _collection != null)
     {
         throw new InvalidOperationException("Can be part of only one wizard at once");
     }
 }
Example #2
0
        protected Wizard()
        {
            InitializeComponent();

            _pages      = new WizardPageCollection(this);
            _nextText   = nextButton.Text;
            _finishText = finishButton.Text;
        }
Example #3
0
 protected internal virtual void OnAfterRemove(WizardPageCollection wizardPageCollection)
 {
     _removing   = false;
     _collection = null;
 }
Example #4
0
 protected internal virtual void OnBeforeRemove(WizardPageCollection collection)
 {
     _removing = true;
 }
Example #5
0
 protected internal virtual void OnAfterAdd(WizardPageCollection collection)
 {
     _collection = collection;
 }