Наследование: RecordModifiedEventArgs
Пример #1
0
        bool DeleteCallback(int recordsAffected, Exception exception)
        {
            AfterRecordDeletedEventArgs eAfterRecordDeleted = new AfterRecordDeletedEventArgs(record, recordsAffected, exception, keys);

            this.OnAfterRecordDeleted(eAfterRecordDeleted);

            return(eAfterRecordDeleted.ExceptionHandled);
        }
Пример #2
0
        protected virtual void OnAfterRecordDeleted(AfterRecordDeletedEventArgs e)
        {
            AfterRecordDeletedEventHandler handler = (AfterRecordDeletedEventHandler)Events[EventAfterRecordDeleted];

            if (handler != null)
            {
                handler(this, e);
            }
        }
Пример #3
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);
        }
Пример #4
0
        protected virtual void OnAfterRecordDeleted(AfterRecordDeletedEventArgs e)
        {
            AfterRecordDeletedEventHandler handler = (AfterRecordDeletedEventHandler)Events[EventAfterRecordDeleted];

            if (handler != null)
            {
                handler(this, e);
            }
        }
Пример #5
0
        bool DeleteCallback(int recordsAffected, Exception exception)
        {
            AfterRecordDeletedEventArgs eAfterRecordDeleted = new AfterRecordDeletedEventArgs(record, recordsAffected, exception, keys);
            this.OnAfterRecordDeleted(eAfterRecordDeleted);

            return eAfterRecordDeleted.ExceptionHandled;
        }
Пример #6
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;
        }