Esempio n. 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");
     }
 }
Esempio n. 2
0
        protected Wizard()
        {
            InitializeComponent();

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