Exemple #1
0
        // Получение данных по теме
        public ThemeTasksData GetThemeTasksData(TheoryThemes theoryThemes)
        {
            switch (theoryThemes)
            {
            case TheoryThemes.Binary:
                return(ThemeTasksDatas[0]);

            case TheoryThemes.Octal:
                return(ThemeTasksDatas[1]);

            case TheoryThemes.Hexadecimal:
                return(ThemeTasksDatas[2]);

            default:
                return(ThemeTasksDatas[0]);
            }
        }
Exemple #2
0
 // Процент решаемости по теме
 public float GetSolvabilityPercentageByTheme(TheoryThemes theoryThemes) => GetThemeTasksData(theoryThemes).SolvabilityPercentage();
Exemple #3
0
 // Оценка по теме
 public float GetAssessmentByTheme(TheoryThemes theoryThemes) => ThemeTasksData.Assessment(GetSolvabilityPercentageByTheme(theoryThemes));