private void FixupCourse(Course previousValue)
{
if (previousValue != null && previousValue.Announcements.Contains(this))
{
previousValue.Announcements.Remove(this);
}
if (Course != null)
{
if (!Course.Announcements.Contains(this))
{
Course.Announcements.Add(this);
}
if (CourseId != Course.CourseId)
{
CourseId = Course.CourseId;
}
}
}