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(), " ")); }
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(), " "); }
public static string GetTextPageText(TaskNames textPage) { return(GetTextFile(textPage.ToString())); }
public static QuizButtons GetQuizButtons(TaskNames textPage) { return(JsonConvert.DeserializeObject <QuizButtons> (GetTextFile(textPage.ToString()))); }
public static string GetTextPageText(TaskNames textPage) { return GetTextFile (textPage.ToString ()); }
public static QuizButtons GetQuizButtons(TaskNames textPage) { return JsonConvert.DeserializeObject<QuizButtons> (GetTextFile (textPage.ToString ())); }