Exemplo n.º 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;
            }
        }
Exemplo n.º 2
0
 public ClientPresentable(Client client)
 {
     _base = client;
 }
Exemplo n.º 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;
                }
            }
        }