Exemplo n.º 1
0
        public void PopulateRoomsListBox()
        {
            string[] fullNames = meetingManager.GetAvailableRoomNames(currentMeeting, parentForm.GetSelectedDate());

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

            LocationListBox.CheckOnClick = true;
        }
        public void PopulateRoomsListBox()
        {
            // Get people who are available among all meetings - oldMeeting
            string[] fullNames = meetingManager.GetAvailableRoomNames(currentMeeting, parentForm.GetSelectedDate(), oldMeeting);

            LocationListBox.Items.Clear();
            foreach (string fullName in fullNames)
            {
                if (fullName == oldMeeting.location)
                {
                    LocationListBox.Items.Add(fullName, true);
                    isLocationSelected = true;
                }
                else
                {
                    LocationListBox.Items.Add(fullName, false);
                }
            }

            LocationListBox.CheckOnClick = true;
        }