Пример #1
0
        private void FixupProject(Project previousValue)
        {
            if (previousValue != null && previousValue.ProjectSkills.Contains(this))
            {
                previousValue.ProjectSkills.Remove(this);
            }

            if (Project != null)
            {
                if (!Project.ProjectSkills.Contains(this))
                {
                    Project.ProjectSkills.Add(this);
                }
                if (ProjectId != Project.ProjectId)
                {
                    ProjectId = Project.ProjectId;
                }
            }
        }
Пример #2
0
 public ProjectPresentable(Project project)
 {
     _base = project;
 }
Пример #3
0
        private void FixupProject(Project previousValue)
        {
            if (previousValue != null && previousValue.History.Contains(this))
            {
                previousValue.History.Remove(this);
            }

            if (Project != null)
            {
                if (!Project.History.Contains(this))
                {
                    Project.History.Add(this);
                }
                if (ProjectId != Project.ProjectId)
                {
                    ProjectId = Project.ProjectId;
                }
            }
            else if (!_settingFK)
            {
                ProjectId = null;
            }
        }