Пример #1
0
        private static Dictionary <int, int> Determine_IndexValue(TotalWeighting totalWeighting)
        {
            var indexValues  = new Dictionary <int, int>();
            var storyIndices = totalWeighting.StoryIndizes.ToList();

            for (var i = 0; i < storyIndices.Count(); i++)
            {
                indexValues.Add(storyIndices[i], i + 1);
            }

            return(indexValues);
        }
Пример #2
0
 internal static IEnumerable <string> Stories_for_weighting(TotalWeighting weighting, string[] stories)
 => weighting.StoryIndizes.Select(si => stories[si]);
Пример #3
0
 private static Dictionary <int, int> Init_Scorecard(TotalWeighting totalWeighting)
 {
     return(totalWeighting.StoryIndizes.ToDictionary(k => k, v => 0));
 }