/// <summary> /// Handles a change to a record in the Consumer table. /// </summary> /// <param name="sender">The object that originated the event.</param> /// <param name="consumerRowChangeEventArgs">The event data.</param> static void OnConsumerDebtSettlementRowChanged(Object sender, ConsumerDebtSettlementRowChangeEventArgs consumerDebtSettlementRowChangeEventArgs) { // When a working order is committed it will be examined to see if any of the properties that control crossing have changed. A change in any of // these parameters indicates that the order should be re-examined for possible matches. if (consumerDebtSettlementRowChangeEventArgs.Action == DataRowAction.Commit && consumerDebtSettlementRowChangeEventArgs.Row.RowState != DataRowState.Deleted) { // Extract the unique working order identifier from the generic event arguments. The identifier is needed for the handler that creates crosses // when the right conditions occur. ConsumerDebtSettlementRow consumerDebtSettlementRow = consumerDebtSettlementRowChangeEventArgs.Row; Guid consumerDebtSettlementId = (Guid)consumerDebtSettlementRow[DataModel.ConsumerDebtSettlement.ConsumerDebtSettlementIdColumn]; SettlementDocumentFactory.actionQueue.Enqueue(new ObjectAction(MergeDocument, new Object[] { consumerDebtSettlementId })); } }
/// <summary> /// Handles a change to the MatchRow table. /// </summary> /// <param name="sender">The object that originated the event.</param> /// <param name="e">The event arguments.</param> private void OnMatchRowChanged(object sender, ConsumerDebtSettlementRowChangeEventArgs e) { // When the merge is completed, this indicates that the document should be refreshed. this.isDataChanged = true; }