示例#1
0
 private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
 {
     dmp = new Department(this);
     int val = dmp.processCurriculum();
     if (val == -1)
     {
         e.Cancel = true;
         return;
     }
     return;
 }
示例#2
0
 public Curriculum(Department connected_dep)
 {
     isFitnessChanged = true; //calculate at the beginning, of course!
     this.department = connected_dep;
     semesters = new Semester[8];
     for(int i=0;i<8;i++)
     {
         Semester sem = new Semester(i,this);
         semesters[i] = sem;
     }
 }
示例#3
0
 public Curriculum(Department dep)
 {
     //this.department = dep;
     isFitnessChanged = true; //calculate at the beginning, of course!
 }