private void loadProgram() { lstProgram.Items.Clear(); ProgrammeHelper client = new ProgrammeHelper(); List<int> countList = client.GetEventProgCount(event_.EventID).ToList<int>(); client.Close(); for (int i = 0; i < countList.Count; i++) { string tempResult = DayList[i].StartDateTime.ToShortDateString() + "\t\t-\t" + countList[i] + " programme(s)"; lstProgram.Items.Add(tempResult); } }