private void OpenScheduleForm_Shown(object sender, EventArgs e) { FullSchedules = DatabaseManager.GetFullSchedules(); // add the schedule names to the listbox scheduleListBox.BeginUpdate(); scheduleListBox.Items.Clear(); foreach (string[] scheduleInfo in FullSchedules) { scheduleListBox.Items.Add(scheduleInfo[1]); } scheduleListBox.EndUpdate(); }