Example #1
0
        private async void buttonNext_Click(object sender, EventArgs e)
        {
            UseWaitCursor = true;

            buttonNext.Enabled     = false;
            buttonPrevious.Enabled = false;

            await _currentStage.StageEnd();

            buttonNext.Enabled     = true;
            buttonPrevious.Enabled = true;

            UseWaitCursor = false;

            if (_wizard.IsFinalStage)
            {
                DialogResult = DialogResult.OK;
                Close();
                _wizardFinished();
                return;
            }

            _wizard.MoveNext();
            _changeDisplayToCurrentStage();
            _currentStage.StageStart();
        }
Example #2
0
        private void buttonNext_Click(object sender, EventArgs e)
        {
            _currentStage.StageEnd();

            if (_wizard.IsFinalStage)
            {
                DialogResult = DialogResult.OK;
                Close();
                _wizardFinished();
                return;
            }

            _wizard.MoveNext();
            _changeDisplayToCurrentStage();
            _currentStage.StageStart();
        }