Beispiel #1
0
 private void CreateMeetingCancelButtom_Click(object sender, EventArgs e)
 {
     ChangeTab(MeetingTab, MeetingsMenuItem);
     Agendapoints.Clear();
     attendances.Clear();
     CreateMeetingAgendaTextbox.Clear();
     CreateMeetingAttendancecomboBox.Items.Clear();
     CreateMeetingAttendancesrichTextBox.Clear();
     CreateMeetingDescriptionRichtextbox.Clear();
     //CreatemeetingSubmeetingTextbox.Clear();
     CreateMeetingTitleTextbox.Clear();
     UpdateCreateMeetingAgendaTextbox();
 }
Beispiel #2
0
        private void CreateMeetingCreateButtom_Click(object sender, EventArgs e)
        {
            List <Models.Person> persons = new List <Models.Person>();

            persons.Add(currUser);
            foreach (String name in attendances)
            {
                persons.Add(database.GetPersonByName(name));
            }
            database.addMeeting(new Models.Meeting(CreateMeetingTitleTextbox.Text, currUser, CreateMeetingStarttimeDatePicker.Value, CreateMeetingEndtimeDatePicker.Value, CreateMeetingDescriptionRichtextbox.Text, persons, Agendapoints), persons);
            MeetingsMenuItem_Click(sender, e);
            //ChangeTab(MeetingTab, MeetingsMenuItem);
            Agendapoints.Clear();
            attendances.Clear();
            CreateMeetingAgendaTextbox.Clear();
            CreateMeetingAttendancecomboBox.Items.Clear();
            CreateMeetingAttendancesrichTextBox.Clear();
            CreateMeetingDescriptionRichtextbox.Clear();
            //CreatemeetingSubmeetingTextbox.Clear();
            CreateMeetingTitleTextbox.Clear();
            UpdateCreateMeetingAgendaTextbox();
        }