Esempio n. 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();
 }
Esempio n. 2
0
 private void CreateMeetingAttendancecomboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (attendances.Contains(CreateMeetingAttendancecomboBox.SelectedItem))
     {
         attendances.Remove(CreateMeetingAttendancecomboBox.SelectedItem.ToString());
     }
     else
     {
         attendances.Add(CreateMeetingAttendancecomboBox.SelectedItem.ToString());
     }
     CreateMeetingAttendancesrichTextBox.Clear();
     foreach (string attendance in attendances)
     {
         CreateMeetingAttendancesrichTextBox.Text += $"{attendance}\n";
     }
 }
Esempio n. 3
0
        private void CreateMeetingAddexternButtom_Click(object sender, EventArgs e)
        {
            int checkCancel = database.externals.Count;

            Models.OpretExternPopup opretExternPopup = new Models.OpretExternPopup(database);
            opretExternPopup.ShowDialog();
            if (database.externals.Count != checkCancel)
            {
                CreateMeetingAttendancecomboBox.Items.Add(database.externals.Last <Models.External>().Name);
                attendances.Add(database.externals.Last <Models.External>().Name);
                CreateMeetingAttendancesrichTextBox.Clear();
                foreach (string attendance in attendances)
                {
                    CreateMeetingAttendancesrichTextBox.Text += $"{attendance}\n";
                }
            }
        }
Esempio n. 4
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();
        }