Beispiel #1
0
        internal virtual List <Effort> GetBurn(ItemBroadType itemBroadType, ActivityType activityType)
        {
            List <Effort> burnList = new List <Effort>();

            Children.ForEach(i => burnList.AddRange(i.GetBurn(itemBroadType, activityType)));
            return(burnList);
        }
Beispiel #2
0
        internal override List <Effort> GetBurn(ItemBroadType itemBroadType, ActivityType activityType)
        {
            List <Effort> burnList      = new List <Effort>();
            Effort        currentEffort = new Effort {
                Activity = Activity, EffortInHr = Burn
            };
            ItemBroadType parentOfThisItem = GetItemBroadType();

            if (itemBroadType == ItemBroadType.None || itemBroadType == parentOfThisItem)
            {
                if (activityType == ActivityType.None || activityType == Activity)
                {
                    burnList.Add(currentEffort);
                }
            }
            Children.ForEach(i => burnList.AddRange(i.GetBurn(itemBroadType, activityType)));
            return(burnList);
        }