/// <summary> /// Handles the MoveComplete event of the underlying Recordset, triggering the control's MoveComplete event. /// </summary> /// <param name="eventSender">The object which rises the event.</param> /// <param name="e">The arguments of the event.</param> void Recordset_MoveComplete(object eventSender, MoveCompleteEventArgs e) { EventStatusEnum status = e.Status; OnMoveComplete(e.Reason, ref status, e.Errors); e.Status = status; }
/// <summary> /// OnMoveComplete event is called after the current position in the ADORecordsetHelper changes. /// </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 OnMoveComplete(EventReasonEnum reason, ref EventStatusEnum status, string[] errors) { if (MoveComplete != null) { MoveCompleteEventArgs args = new MoveCompleteEventArgs(reason, errors, status); MoveComplete(this, args); status = args.Status; } }