Ejemplo n.º 1
0
        protected virtual void OnAfterRecordDeleted(AfterRecordDeletedEventArgs e)
        {
            AfterRecordDeletedEventHandler handler = (AfterRecordDeletedEventHandler)Events[EventAfterRecordDeleted];

            if (handler != null)
            {
                handler(this, e);
            }
        }
Ejemplo n.º 2
0
        bool DeleteCallback(int recordsAffected, Exception exception)
        {
            if (confirmation != null && recordsAffected > 0)
            {
                confirmation.ConfirmRecord();
            }
            AfterRecordDeletedEventArgs eAfterRecordDeleted = new AfterRecordDeletedEventArgs(record, recordsAffected, exception, keys, confirmation);

            this.OnAfterRecordDeleted(eAfterRecordDeleted);
            return(eAfterRecordDeleted.ExceptionHandled);
        }