Exemple #1
0
        private void courcesWithoutStaffToolStripMenuItem_Click(object sender, EventArgs e)
        {
            List <CourseDTO> noStaff = new List <CourseDTO>();

            noStaff = (from c in Selected.Courses
                       where c.Staff.Assistants.Count == 0 && c.Staff.Lecturers.Count == 0
                       select c).ToList();

            CoursesTable table = new CoursesTable();

            table.CourcesDb = noStaff;
            table.ShowDialog();
        }
Exemple #2
0
        private void showLowLecturesCoursesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            List <CourseDTO> list = new List <CourseDTO>();

            foreach (var it in Selected.Courses)
            {
                if (it.Info.LectureHours > it.Info.PracticeHours + it.Info.LaboratoryHours)
                {
                    list.Add(it);
                }
            }

            CoursesTable table = new CoursesTable();

            table.CourcesDb = list;
            table.ShowDialog();
        }