Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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);
        }