public static PillarItem CreatePillarItem(string title = "New Pillar") { PillarItem newPillar = ScheduleStore.Instance.CreateStoreItem <PillarItem>(ItemTypeID.Pillar); newPillar.Title = title; return(newPillar); }
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); }
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); }