/// <summary> /// Raises the <see cref="Rollback"/> event. /// </summary> /// <returns><c>true</c> if handler does not set the <see cref="WizardPageConfirmEventArgs.Cancel"/> to <c>true</c>; otherwise, <c>false</c>.</returns> protected virtual bool OnRollback() { var e = new WizardPageConfirmEventArgs(this); Rollback?.Invoke(this, e); return(!e.Cancel); }
/// <summary> /// Raises the <see cref="Commit" /> event. /// </summary> /// <returns><c>true</c> if handler does not set the <see cref="WizardPageConfirmEventArgs.Cancel"/> to <c>true</c>; otherwise, <c>false</c>.</returns> protected virtual bool OnCommit() { var e = new WizardPageConfirmEventArgs(this); Commit?.Invoke(this, e); return(!e.Cancel); }