static SettingsStore <AppSettings> LoadSettings() { var path = SettingsDirectory.GetDefaultSettingsFilePath(AppSettings.DefaultSettingsFile); var store = SettingsStore <AppSettings> .Create(path); return(store); }
static string GetLocalHistoryText() { var filePath = SettingsDirectory.GetDefaultSettingsFilePath("spoken.txt"); var records = XmlFragmentHelper.ReadLog <Spoken>(filePath); var text = string.Join(Environment.NewLine, from r in records select r.Text); return(text); }