private void RefreshTable() { try { events = controller.GetAllEvents(); probe1ComboBoxevents = new List <Event>(events); probe2ComboBoxevents = new List <Event>(events); eventsDataGridView.DataSource = null; eventsDataGridView.DataSource = events; eventsComboBox.DataSource = null; eventsComboBox.DataSource = events; probe1ComboBox.DataSource = null; probe1ComboBox.DataSource = probe1ComboBoxevents; probe2ComboBox.DataSource = null; probe2ComboBox.DataSource = probe2ComboBoxevents; } catch (Error e) { MessageBox.Show(this, "Unexpected error: " + e.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }