Пример #1
0
        private void RemoveTaskContributor(object param)
        {
            var contributor = (IPerson)param;

            if (ProjectContributors.Contains(contributor))
            {
                //ProjectContributors.Remove(contributor);
                //DataBase.RemoveContributor(_project.ID, contributor.ID);
            }
        }
Пример #2
0
        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;
        }