Example #1
0
        /// <summary>
        /// Raises the updating event.
        /// </summary>
        /// <param name="cancel">if set to <c>true</c> [cancel].</param>
        /// <param name="personId">The person id.</param>
        public virtual void RaiseUpdatingEvent(out bool cancel, int?personId)
        {
            ModelUpdatingEventArgs e = new ModelUpdatingEventArgs(this, personId);

            OnUpdating(e);
            cancel = e.Cancel;
        }
Example #2
0
 /// <summary>
 /// Raises the <see cref="E:Updating"/> event.
 /// </summary>
 /// <param name="e">The <see cref="ModelUpdatingEventArgs"/> instance containing the event data.</param>
 protected virtual void OnUpdating(ModelUpdatingEventArgs e)
 {
     if (Updating != null)
     {
         Updating(this, e);
     }
 }