private void ScheduleTab_Click(object sender, EventArgs e) { Schedule_PastEventsComboBox.Items.Clear(); List <EntryInSchedule> PastEvents = controller.AllScheduledEvents; for (int i = 0; i < PastEvents.Count; i++) { EntryInSchedule Event = PastEvents[i]; Schedule_PastEventsComboBox.Items.Add("Training Type : " + Event.GetTrainingName() + " , " + "Training Date : " + Event.GetTime()); } }
private void Schedule_UpdateOutcomeButton_Click(object sender, EventArgs e) { List <EntryInSchedule> PastEvents = controller.AllScheduledEvents; EntryInSchedule Event = PastEvents[Schedule_PastEventsComboBox.SelectedIndex]; string outcome = Schedule_ScheduleOutcomeTextBox.Text; if (controller.SetOutcome(Event.GetScheduleID(), outcome)) { Schedule_UpdateOutcomeStatus.Text = "Outcome updated successfully!"; } else { Schedule_UpdateOutcomeStatus.Text = "Couldn't update outcome, try again"; } }