Ejemplo n.º 1
0
        public void PopulateAttendeesListBox()
        {
            string[] fullNames = meetingManager.GetAvailableEmployeeNames(currentMeeting, parentForm.GetSelectedDate());

            AttendeesListBox.Items.Clear();
            foreach (string fullName in fullNames)
            {
                AttendeesListBox.Items.Add(fullName, false);
            }

            AttendeesListBox.CheckOnClick = true;
        }
        public void PopulateAttendeesListBox()
        {
            string[] fullNames = meetingManager.GetAvailableEmployeeNames(currentMeeting, parentForm.GetSelectedDate(), oldMeeting);

            AttendeesListBox.Items.Clear();
            foreach (string fullName in fullNames)
            {
                if (oldMeeting.attendees.Contains(fullName))
                {
                    AttendeesListBox.Items.Add(fullName, true);
                    isAttendeeSelected = true;
                }
                else
                {
                    AttendeesListBox.Items.Add(fullName, false);
                }
            }

            AttendeesListBox.CheckOnClick = true;
        }