Пример #1
0
        public void SetQuestionImg()
        {
            string filePath = Globals.ThisAddIn.exerciseJsonPath + paperName + ".json";

            paper      = jsonFileHelper.GetPaperFromFile(filePath);
            problemSet = jsonFileHelper.GetProblemSetFromFile(filePath);

            //Exercise pointExercise = new Exercise();
            if (paper.PaperNodeList.Count != 0 && problemSet.ExerciseList.Count == 0)
            {
                exerciseOrderCount = 0;
                pointExercise      = GetExerciseByOrder(paper.PaperNodeList as List <PaperNode>);
            }
            else if (paper.PaperNodeList.Count == 0 && problemSet.ExerciseList.Count != 0)
            {
                exerciseOrderCount = 0;
                pointExercise      = GetExerciseByOrder(problemSet.ExerciseList as List <Exercise>);
            }

            ReSetQuestionDetail();
        }