internal static void Save(string path, Configuration config) { CreateDirectoriesFromPath(path); XmlSerializer serializer = new XmlSerializer(typeof(Configuration)); using (StreamWriter stream = new StreamWriter(path)) { serializer.Serialize(stream, config); } }
internal static void Save(string symbol, ChartSettings newSettings) { m_symbolToSettings[symbol] = newSettings; Configuration config = new Configuration(m_symbolToSettings); Configuration.Save(m_path, config); }
internal static void ResetToDefault(string symbol) { m_symbolToSettings.Remove(symbol); Configuration config = new Configuration(m_symbolToSettings); Configuration.Save(m_path, config); }