private void Fixupcore_student(core_student previousValue)
        {
            if (previousValue != null && previousValue.core_guardian.Contains(this))
            {
                previousValue.core_guardian.Remove(this);
            }

            if (core_student != null)
            {
                if (!core_student.core_guardian.Contains(this))
                {
                    core_student.core_guardian.Add(this);
                }
                if (student_id != core_student.id)
                {
                    student_id = core_student.id;
                }
            }
        }
Пример #2
0
        private void Fixupcore_student(core_student previousValue)
        {
            if (previousValue != null && previousValue.enroll_enrolledyear.Contains(this))
            {
                previousValue.enroll_enrolledyear.Remove(this);
            }

            if (core_student != null)
            {
                if (!core_student.enroll_enrolledyear.Contains(this))
                {
                    core_student.enroll_enrolledyear.Add(this);
                }
                if (student_id != core_student.id)
                {
                    student_id = core_student.id;
                }
            }
        }