private static JinxBotConfiguration LoadVersion10Configuration(TextReader reader) { XmlSerializer xs = new XmlSerializer(typeof(JinxBotConfiguration)); try { JinxBotConfiguration config = xs.Deserialize(reader) as JinxBotConfiguration; return(config); } catch (Exception ex) { Debug.WriteLine(ex); return(new JinxBotConfiguration()); } }
private static string GetAppDataPath() { return(JinxBotConfiguration.GetAppDataPath()); }