public void NotifyObservers() { ClientValues values = new ClientValues(); values.clientId = clientId; values.name = name; values.debtAmount = debtAmount; foreach (IClientObserver observer in observers) { observer.Notify(values); } }
/// <summary> /// Initializes a new instance of the <see cref="MockMonahrqField"/> class. /// </summary> public MockMonahrqField() { if (Values != null) { Values.Clear(); } if (ClientValues != null) { ClientValues.Clear(); } Values = new ObservableCollection <MockMonarqValues>(); ClientValues = new ObservableCollection <MockClientValues>(); }
public void Notify(ClientValues clientValues) { ShowClientInformation(clientValues); }
public void ShowClientInformation(ClientValues clientData) { dialog.ShowMessage("-----------------------\nUpdated client information:\n ID = " + clientData.clientId + "\n Name = " + clientData.name + "\n Debt amount = " + clientData.debtAmount.ToString("0.00") + "\n-----------------------"); }
public void ShowClientInformation(ClientValues clientData) { dialog.ShowMessage("-----------------------\nUPDATED CLIENT INFORMATION:\n ID = " + clientData.clientId + "\n NAME = " + clientData.name + "\n DEBT AMOUNT = " + clientData.debtAmount + "\n-----------------------"); }