public void UpdateEvent(IList <string> eventList) { if (EventID.InvokeRequired) { EventID.Invoke(new SetTextCallback(UpdateEvent), eventList); } else { EventID.DataSource = eventList.ToList(); } }