/// <summary> /// Adds a new levelEvent with the user input. /// </summary> void AddNewLevelEvent() { // Create levelEvent. agenda.AddLevelEvent( levelEventTitleInputField.text, levelEventDescriptionInputField.text, new System.DateTime( int.Parse(levelEventYearInputField.text), int.Parse(levelEventMonthInputField.text), int.Parse(levelEventDayInputField.text), int.Parse(levelEventHourInputField.text), int.Parse(levelEventMinutesInputField.text), 0) ); // Update views. listViewGO.SetActive(true); newLevelEventViewGO.SetActive(false); }