private void MergeResult(Dictionary <string, bool> passList, EvaluationResult sourceResult, EvaluationResult targetResult)
 {
     foreach (string student_id in sourceResult.Keys)
     {
         if (passList.ContainsKey(student_id) && passList[student_id])
         {
             continue;
         }
         targetResult.MergeResults(student_id, sourceResult[student_id]);
     }
 }
Пример #2
0
        private void MergeResults(Dictionary <string, bool> passList, IEnumerable <EvaluationResult> resultList)
        {
            EvaluationResult merged = new EvaluationResult();

            foreach (EvaluationResult result in resultList)
            {
                foreach (string student_id in result.Keys)
                {
                    if (!passList.ContainsKey(student_id))
                    {
                        continue;
                    }
                    if (passList[student_id])
                    {
                        continue;
                    }
                    merged.MergeResults(student_id, result[student_id]);
                }
            }

            _result = merged;
        }