public void ClientIndexChanged(int index)
        {
            if (ClientList.Count < index)
            {
                return;
            }
            var selectedClient  = ClientNameList[index];
            var matchingClients = ClientList.Where(x => x.ClientName == selectedClient).ToList();

            ContractList.Clear();

            ContractList = new List <string>();

            if (matchingClients == null)
            {
                return;
            }
            foreach (var contract in matchingClients)
            {
                ContractList.Add(contract.ContractName);
            }
        }
Esempio n. 2
0
 public override void LoadContacts()
 {
     ContractList.Clear();
     OCMessageList.Clear();
     messageStore.GetQueryMessageList(dtStart, dtEnd, Keyword, ContractList, OCMessageList);
 }