private void FixupClient(Client previousValue) { if (previousValue != null && previousValue.HistoryItems.Contains(this)) { previousValue.HistoryItems.Remove(this); } if (Client != null) { if (!Client.HistoryItems.Contains(this)) { Client.HistoryItems.Add(this); } if (ClientId != Client.ClientId) { ClientId = Client.ClientId; } } else if (!_settingFK) { ClientId = null; } }
public ClientPresentable(Client client) { _base = client; }
private void FixupClient(Client previousValue) { if (previousValue != null && previousValue.Contracts.Contains(this)) { previousValue.Contracts.Remove(this); } if (Client != null) { if (!Client.Contracts.Contains(this)) { Client.Contracts.Add(this); } if (ClientId != Client.ClientId) { ClientId = Client.ClientId; } } }