/// <summary> /// Handles the RecordsetChangeComplete event of the underlying Recordset, triggering the control's RecordsetChangeComplete event. /// </summary> /// <param name="eventSender">The object which rises the event.</param> /// <param name="e">The arguments of the event.</param> void Recordset_RecordsetChangeComplete(object eventSender, RecordSetChangeCompleteEventArgs e) { EventStatusEnum status = e.Status; OnRecordsetChangeComplete(e.Reason, ref status, e.Errors); e.Status = status; }
/// <summary> /// OnRecordsetChangeComplete event is called after the ADORecordsetHelper has changed. /// </summary> /// <param name="reason">The reason of the change.</param> /// <param name="status">A EventStatusEnum value that indicates the state of the ADORecordsetHelper in the moment that the event rose.</param> /// <param name="errors">Array containing all the errors occurred during the field change.</param> protected void OnRecordsetChangeComplete(EventReasonEnum reason, ref EventStatusEnum status, string[] errors) { if (RecordsetChangeComplete != null) { RecordSetChangeCompleteEventArgs args = new RecordSetChangeCompleteEventArgs(reason, errors, status); RecordsetChangeComplete(this, args); status = args.Status; } }