// Получение данных по теме 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]); } }
// Процент решаемости по теме public float GetSolvabilityPercentageByTheme(TheoryThemes theoryThemes) => GetThemeTasksData(theoryThemes).SolvabilityPercentage();
// Оценка по теме public float GetAssessmentByTheme(TheoryThemes theoryThemes) => ThemeTasksData.Assessment(GetSolvabilityPercentageByTheme(theoryThemes));