private void OnWizardStepOnFinish(object sender, WizardStepEventArgs e) { if (e != null) { AddOrUpdateState(e.Name, e.State); } CompleteWizard(); }
/// <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); } }
/// <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); } }
/// <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); } }
/// <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); } }
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(); }
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(); }