Esempio n. 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;
                }
            }
        }
 public ProjectPresentable(Project project)
 {
     _base = project;
 }
Esempio n. 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;
            }
        }