private void RemoveTaskContributor(object param) { var contributor = (IPerson)param; if (ProjectContributors.Contains(contributor)) { //ProjectContributors.Remove(contributor); //DataBase.RemoveContributor(_project.ID, contributor.ID); } }
private void AddContributor(object param) { var contributor = (IPerson)param; if (!ProjectContributors.Contains(contributor)) { ProjectContributors.Add(contributor); DataBase.AssignContributors(_project.ID, contributor.ID); } IsAllContributorListVisible = false; IsAddedContributorListVisible = true; IsAddContributorPanelVisible = false; }