public override void Delete() { if (SubjectGroup != null) { SubjectGroup.Subjects.Remove(this); SubjectGroup.Save(); } if (Runs.Count > 0) { foreach (Run run in Runs) { run.Delete(); } } Project.Subjects.Remove(this); Project.Save(); }
public virtual void AddSubjectGroup(SubjectGroup subjectGroup) { subjectGroup.Project = this; SubjectGroups.Add(subjectGroup); }