Ejemplo n.º 1
0
 public Form1()
 {
     collegeEntities = new CollegeEntities();
     courseForm      = new CourseForm();
     enrollmentForm  = new EnrollmentForm();
     instructorForm  = new InstructorForm();
     majorForm       = new MajorForm();
     sectionForm     = new SectionForm();
     studentForm     = new StudentForm();
     InitializeComponent();
 }
Ejemplo n.º 2
0
 private void SectionForm_Click(object sender, EventArgs e)
 {
     if (collegeEntities.Instructors.ToList().Count > 0 && collegeEntities.Courses.ToList().Count > 0)
     {
         sectionForm = new SectionForm();
         sectionForm.Show();
     }
     else
     {
         MessageBox.Show("Error! The Instructor and Course tables must both have at least\none entry before the Section table can be modified.");
     }
 }