Пример #1
0
        static string EnumToTitle(TaskNames taskName)
        {
            var regex = new Regex(@"
                (?<=[A-Z])(?=[A-Z][a-z]) |
                 (?<=[^A-Z])(?=[A-Z]) |
                 (?<=[A-Za-z])(?=[^A-Za-z])", RegexOptions.IgnorePatternWhitespace);

            return(regex.Replace(taskName.ToString(), " "));
        }
Пример #2
0
        static string EnumToTitle(TaskNames taskName)
        {
            var regex = new Regex(@"
                (?<=[A-Z])(?=[A-Z][a-z]) |
                 (?<=[^A-Z])(?=[A-Z]) |
                 (?<=[A-Za-z])(?=[^A-Za-z])", RegexOptions.IgnorePatternWhitespace);

            return regex.Replace (taskName.ToString(), " ");
        }
Пример #3
0
 public static string GetTextPageText(TaskNames textPage)
 {
     return(GetTextFile(textPage.ToString()));
 }
Пример #4
0
 public static QuizButtons GetQuizButtons(TaskNames textPage)
 {
     return(JsonConvert.DeserializeObject <QuizButtons> (GetTextFile(textPage.ToString())));
 }
Пример #5
0
 public static string GetTextPageText(TaskNames textPage)
 {
     return GetTextFile (textPage.ToString ());
 }
Пример #6
0
 public static QuizButtons GetQuizButtons(TaskNames textPage)
 {
     return JsonConvert.DeserializeObject<QuizButtons> (GetTextFile (textPage.ToString ()));
 }