Пример #1
0
        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();
        }
Пример #2
0
 public virtual void AddSubjectGroup(SubjectGroup subjectGroup)
 {
     subjectGroup.Project = this;
     SubjectGroups.Add(subjectGroup);
 }