Ejemplo n.º 1
0
        /// <summary>
        /// Handles the RecordChangeComplete event of the underlying Recordset, triggering the control's RecordChangeComplete event.
        /// </summary>
        /// <param name="eventSender">The object which rises the event.</param>
        /// <param name="e">The arguments of the event.</param>
        void Recordset_RecordChangeComplete(object eventSender, RecordChangeCompleteEventArgs e)
        {
            EventStatusEnum status = e.Status;

            OnRecordChangeComplete(e.Reason, ref status, e.NumberOfRecords, e.Errors);
            e.Status = status;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// OnRecordChangeComplete event is called after one or more records change.
 /// </summary>
 /// <param name="reason">The reason of the change.</param>
 /// <param name="status">An EventStatusEnum value that indicates the state of the ADORecordsetHelper in the moment that the event rose.</param>
 /// <param name="numRecords">Value indicating the number of records changed (affected).</param>
 /// <param name="errors">Array containing all the errors occurred during the field change.</param>
 protected void OnRecordChangeComplete(EventReasonEnum reason, ref EventStatusEnum status, int numRecords, string[] errors)
 {
     if (RecordChangeComplete != null)
     {
         RecordChangeCompleteEventArgs args = new RecordChangeCompleteEventArgs(reason, numRecords, errors, status);
         RecordChangeComplete(this, args);
         status = args.Status;
     }
 }