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); } }
public override void LoadContacts() { ContractList.Clear(); OCMessageList.Clear(); messageStore.GetQueryMessageList(dtStart, dtEnd, Keyword, ContractList, OCMessageList); }