Exemple #1
0
        private void OnWizardStepOnFinish(object sender, WizardStepEventArgs e)
        {
            if (e != null)
            {
                AddOrUpdateState(e.Name, e.State);
            }

            CompleteWizard();
        }
Exemple #2
0
        /// <summary>
        /// Invokes the Finish event
        /// </summary>
        /// <param name="e">Event arguments containing wizard step and state information</param>
        protected void InvokeFinish(WizardStepEventArgs e)
        {
            var finish = Finish;

            if (finish != null)
            {
                finish.Invoke(this, e);
            }
        }
Exemple #3
0
        /// <summary>
        /// Invokes the Cancel event
        /// </summary>
        /// <param name="e">Event arguments containing wizard step and state information</param>
        protected void InvokeCancel(WizardStepEventArgs e)
        {
            var cancel = Cancel;

            if (cancel != null)
            {
                cancel.Invoke(this, e);
            }
        }
Exemple #4
0
        /// <summary>
        /// Invokes the Previous event
        /// </summary>
        /// <param name="e">Event arguments containing wizard step and state information</param>
        protected virtual void InvokePrevious(WizardStepEventArgs e)
        {
            var previous = Previous;

            if (previous != null)
            {
                previous.Invoke(this, e);
            }
        }
Exemple #5
0
        /// <summary>
        /// Invokes the Next event
        /// </summary>
        /// <param name="e">Event arguments containing wizard step and state information</param>
        protected void InvokeNext(WizardStepEventArgs e)
        {
            var next = Next;

            if (next != null)
            {
                next.Invoke(this, e);
            }
        }
Exemple #6
0
        private void OnWizardStepOnNext(object sender, WizardStepEventArgs e)
        {
            if (e != null)
            {
                AddOrUpdateState(e.Name, e.State);

                if (e.Position.HasValue)
                {
                    NavigateTo(e.Position.Value);
                    return;
                }
            }

            NavigateForward();
        }
Exemple #7
0
        private void OnWizardStepOnPrevious(object sender, WizardStepEventArgs e)
        {
            if (e != null)
            {
                if (ViewState.ContainsKey(e.Name))
                {
                    ViewState[e.Name] = e.State;
                }

                if (e.Position.HasValue)
                {
                    NavigateTo(e.Position.Value);
                    return;
                }
            }

            NavigateBackward();
        }