private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { dmp = new Department(this); int val = dmp.processCurriculum(); if (val == -1) { e.Cancel = true; return; } return; }
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; } }
public Curriculum(Department dep) { //this.department = dep; isFitnessChanged = true; //calculate at the beginning, of course! }