Пример #1
0
        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;
            }
        }
Пример #2
0
 public ClientPresentable(Client client)
 {
     _base = client;
 }
Пример #3
0
        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;
                }
            }
        }