/** * <summary> Constructor from known parameters. </summary> * <param name="id"> Group's ID in the DB. </param> * <param name="abbreviation"> Abbreaviation of the program the students are in. </param> * <param name="name"> Name of the program the students are in. </param> * <param name="year"> Year/grade to which students belong to. </param> * <param name="semester"> Semester in which the students are. </param> * <param name="form"> Form of study the students attend. </param> * <param name="type"> Type of study the students are in. </param> * <param name="language"> Language of study in which the student use. </param> * <param name="studentCount"> Number of student's in a study group. </param> */ public StudentGroup(UInt32 id, string abbreviation, string name, StudyYear year, StudySemester semester, StudyForm form, StudyType type, StudyLanguage language, UInt16 studentCount) { this.Id = id; this.Abbreviation = abbreviation; this.Name = name; this.Year = year; this.Semester = semester; this.Form = form; this.Type = type; this.Language = language; this.StudentCount = studentCount; this.Subjects = new Dictionary <UInt32, Subject>(); }
/** * <summary> Constructor from known parameters. </summary> * <param name="id"> Subject ID from the DB. </param> * <param name="abbreviation"> Subject abbreviation such as AK8PO. </param> * <param name="name"> Subject's full name. </param> * <param name="credits"> Number of credits the subject have. </param> * <param name="maxGroupSize"> Maximal group size for the subject. </param> * <param name="weekCount"> Number of weeks the subject will have. </param> * <param name="lectureLength"> Length of a lecture in hours. </param> * <param name="seminarLength"> Length of a seminar in hours. </param> * <param name="practiceLength"> Length of a practice in hours. </param> * <param name="conditions"> Conditions required to finish the subject. </param> * <param name="language"> Language in which the subject is thought. </param> */ public Subject(UInt32 id, string abbreviation, string name, Byte credits, UInt16 maxGroupSize, Byte weekCount, double lectureLength, double seminarLength, double practiceLength, SubjectConditions conditions, StudyLanguage language) { this.Id = id; this.Abbreviation = abbreviation; this.Name = name; this.Credits = credits; this.MaxGroupSize = maxGroupSize; this.WeekCount = weekCount; this.LectureLength = lectureLength; this.SeminarLength = seminarLength; this.PracticeLength = practiceLength; this.Conditions = conditions; this.Language = language; this.Labels = new Dictionary <UInt32, Label>(); this.StudentGroups = new Dictionary <UInt32, StudentGroup>(); }
/** * <summary> Constructor from known parameters. </summary> * <param name="id"> Label's ID in the DB. </param> * <param name="name"> Label's name. </param> * <param name="employee"> Employee teaching the subject. </param> * <param name="subject"> Subject this class belong to. </param> * <param name="type"> Type of the label. </param> * <param name="language"> Language of the label. </param> * <param name="studentCount"> Number of students belonging to the label/group. </param> * <param name="hourCount"> Number of hours the label is for. </param> * <param name="weekCount"> Number of weeks the label is for. </param> */ public Label(UInt32 id, string name, Employee employee, Subject subject, LabelType type, StudyLanguage language, UInt16 studentCount, double hourCount = 0, byte weekCount = 0) { this.Id = id; this.Name = name; this.LabelEmployee = employee; this.LabelSubject = subject; this.Type = type; this.Language = language; this.StudentCount = studentCount; this.hourCount = hourCount; this.weekCount = weekCount; }