コード例 #1
0
 /// <summary>
 /// Handles the FieldChangeComplete event of the underlying Recordset, triggering the control's FieldChangeComplete event.
 /// </summary>
 /// <param name="eventSender">The object which rises the event.</param>
 /// <param name="e">The arguments of the event.</param>
 void Recordset_FieldChangeComplete(object eventSender, FieldChangeCompleteEventArgs e)
 {
     EventStatusEnum status = e.Status;
     OnFieldChangeComplete(ref status, e.NumberOfFields, e.FieldValues, e.Errors);
     e.Status = status;
 }
コード例 #2
0
 /// <summary>
 /// The FieldChangeComplete event is called after the value of one or more Field objects has changed.
 /// </summary>
 /// <param name="status">A EventStatusEnum value that indicates the state of the ADORecordsetHelper in the moment that the event rose.</param>
 /// <param name="numfields">Indicates the number of fields objects contained in the “fieldvalues” array.</param>
 /// <param name="fieldvalues">Array with the new values of the modified fields.</param>
 /// <param name="errors">Array containing all the errors occurred during the field change.</param>
 protected void OnFieldChangeComplete(ref EventStatusEnum status, int numfields, object[] fieldvalues, string[] errors)
 {
     if (FieldChangeComplete != null)
     {
         FieldChangeCompleteEventArgs args = new FieldChangeCompleteEventArgs(numfields, fieldvalues, errors, status);
         FieldChangeComplete(this, args);
         status = args.Status;
     }
 }