// Use it in the forms public Mark(decimal markValue, TypeOfMarks markType, Student student, Subject subject) { this.MarkValue = markValue; this.MarkType = markType; this.StudentPin = student.Pin; this.SchClass = student.SchClass; this.SchSubClass = student.SchSubClass; this.SubjectName = subject.Name.ToString(); }
public void AddSubject(Subject subject) { ESchoolDiaryData.Subjects.Add(subject); }
public void RemoveSubject(Subject subject) { ESchoolDiaryData.Subjects.Remove(subject); }