/// <summary> /// Create a new consumer debt notification handler. /// </summary> /// <param name="negotiationService">The negotiation service that </param> /// <param name="notificationInfo"></param> public ConsumerDebtNotification(NegotiationService negotiationService, NotificationInfo notificationInfo) { if (notificationInfo.Status == Status.ValidMatchFunds || notificationInfo.Status == Status.ValidMatch) { //System.Diagnostics.Debug.WriteLine(String.Format("Attempting settlement of '{0}' from the debt side.", notificationInfo.MatchId)); this.TryAutoSettle(notificationInfo); } else { //System.Diagnostics.Debug.WriteLine(String.Format("Debt side Match '{0}' is {1}.", notificationInfo.MatchId, notificationInfo.Status)); } }
public EquityNotification(NegotiationService negotiationService, NotificationInfo notificationInfo) { this.negotiationService = negotiationService; this.negotiationService.Dispatch(new Action(() => this.LaunchPopup(notificationInfo))); }