示例#1
0
        public static PillarItem CreatePillarItem(string title = "New Pillar")
        {
            PillarItem newPillar = ScheduleStore.Instance.CreateStoreItem <PillarItem>(ItemTypeID.Pillar);

            newPillar.Title = title;
            return(newPillar);
        }
示例#2
0
        public static List <BacklogItem> GetPillarBacklogItems(PillarItem pillar)
        {
            List <BacklogItem> backlogItems = new List <BacklogItem>();

            foreach (BacklogItem backlogItem in BacklogItem.Items)
            {
                if (backlogItem.ParentPillarItem == pillar)
                {
                    backlogItems.Add(backlogItem);
                }
            }

            return(backlogItems);
        }
示例#3
0
        public static List <BacklogItem> GetBacklogItemsByPillarAndTrain(PillarItem pillar, TrainItem train)
        {
            List <BacklogItem> backlogItems = new List <BacklogItem>();

            foreach (BacklogItem backlogItem in BacklogItem.Items)
            {
                if (backlogItem.ParentPillarItem == pillar && backlogItem.ParentTrainItem == train)
                {
                    backlogItems.Add(backlogItem);
                }
            }

            return(backlogItems);
        }
        public List <GroupMemberItem> GetMembersByPillar(PillarItem pillar, string discipline)
        {
            List <GroupMemberItem> filteredMembers = new List <GroupMemberItem>();

            foreach (GroupMemberItem member in this)
            {
                if (member.ParentPillarItem == pillar)
                {
                    if (member.Discipline == discipline || discipline == Constants.c_All)
                    {
                        if (!member.IsDevManager && !member.IsTestManager)
                        {
                            filteredMembers.Add(member);
                        }
                    }
                }
            }

            return(filteredMembers);
        }