コード例 #1
0
 /// <summary>
 /// Handles the EndOfRecordset event of the underlying Recordset, triggering the control's EndOfRecordset event.
 /// </summary>
 /// <param name="eventSender">The object which rises the event.</param>
 /// <param name="e">The arguments of the event.</param>
 void Recordset_EndOfRecordset(object eventSender, EndOfRecordsetEventArgs e)
 {
     bool moreData = e.MoreData;
     OnEndOfRecordset(ref moreData, e.Status);
     e.MoreData = moreData;
 }
コード例 #2
0
 /// <summary>
 /// The EndOfRecordset event is called when there is an attempt to move to a row past the end of the Recordset.
 /// </summary>
 /// <param name="moredata">Bool value that indicates if more data have been added to the ADORecordsetHelper.</param>
 /// <param name="status">A EventStatusEnum value that indicates the state of the ADORecordsetHelper in the moment that the event rose.</param>
 protected void OnEndOfRecordset(ref bool moredata, EventStatusEnum status)
 {
     if (EndOfRecordset != null)
     {
         EndOfRecordsetEventArgs eor = new EndOfRecordsetEventArgs(moredata, status);
         EndOfRecordset(this, eor);
         moredata = eor.MoreData;
     }
 }