Esempio n. 1
0
        public static List <TimedSection> GetTimedSectionList()
        {
            List <TimedSection> tempList = new List <TimedSection>(
                mSumSections.Count);

            foreach (KeyValuePair <string, double> kvp in mSumSections)
            {
                TimedSection timedSection = new TimedSection()
                {
                    Name = kvp.Key,
                    Time = kvp.Value
                };

                tempList.Add(timedSection);
            }
            return(tempList);
        }
Esempio n. 2
0
        public static List<TimedSection> GetTimedSectionList()
        {
            List<TimedSection> tempList = new List<TimedSection>(
                mSumSections.Count);

            foreach (KeyValuePair<string, double> kvp in mSumSections)
            {
                TimedSection timedSection = new TimedSection()
                {
                    Name = kvp.Key,
                    Time = kvp.Value
                };

                tempList.Add(timedSection);
            }
            return tempList;
        }