Ejemplo n.º 1
0
 public Course(string name, string yeargrade, string filepath1, string filepath2) //this constructor is used when the course is recreated from csv file
 {
     this.yearGrade          = yeargrade;
     this.dataFileAttendance = new Database_Attendance(name, filepath2);
     this.dataFileMarks      = new Database_Marks(name, filepath1);
     allGroups = RebuildFromFiles(dataFileMarks);
     this.name = dataFileMarks.courseName;
 }
Ejemplo n.º 2
0
 public Course(string _name, string yeargrade)  //this constructor is used when it is the first time a course is created
 {
     this.name               = _name;
     this.yearGrade          = yeargrade;
     this.allGroups          = new List <WorkGroup>();
     this.dataFileMarks      = CreateCsvFileMarks(name);
     this.dataFileAttendance = CreateCsvFileAttendance(name);
     AddWrkGroupToCourse();
     AddStudentIntoWorkGroupOfaCourse();
 }
Ejemplo n.º 3
0
 public Database_Attendance CreateCsvFileAttendance(string courseName)
 {
     dataFileAttendance = new Database_Attendance(courseName, courseName + "_dataFileAttendance.csv");
     Console.WriteLine();
     return(dataFileAttendance);
 }
Ejemplo n.º 4
0
 public Course(Database_Marks datafileMark, Database_Attendance datafileAttendance) //this constructor is used when the course is recreated from csv file
 {
     allGroups = RebuildFromFiles(datafileMark);
     this.name = datafileMark.courseName;
     this.dataFileAttendance = datafileAttendance;
 }