private void HallNewButton_Click(object sender, EventArgs e)
        {
            LectureHallForm form = new LectureHallForm();

            form.SetHall(new LectureHall());
            form.Show();

            form.FormClosed += LectureHallForm_Closed;
        }
        private void HallEditButton_Click(object sender, EventArgs e)
        {
            LectureHallForm form = new LectureHallForm();

            form.SetHall((LectureHall)HallCombobox.SelectedItem);
            form.Show();

            form.FormClosed += LectureHallForm_Closed;
        }
        private void LectureHallForm_Closed(object sender, System.Windows.Forms.FormClosedEventArgs e)
        {
            LectureHallForm form = (LectureHallForm)sender;

            if (form.InsertedHalls.Count > 0)
            {
                foreach (LectureHall hall in form.InsertedHalls)
                {
                    all_halls.Add(hall);
                }
                HallCombobox.SelectedIndex = HallCombobox.Items.Count - 1;
            }
            else if (form.Deleted)
            {
                all_halls.RemoveAt(HallCombobox.SelectedIndex);
            }
        }