public void SaveThemes(string file) { FileSerializer <ThemesConfig> fs = new FileSerializer <ThemesConfig>(); try { fs.SerializeObject(file, this.m_themes); } catch (System.Exception e) { MessageBox.Show(e.Message, "exception"); } }
public void LoadThemes(string file) { FileSerializer <ThemesConfig> fs = new FileSerializer <ThemesConfig>(); try { m_themes = fs.DeSerializeObject(file); } catch (System.Exception e) { MessageBox.Show(e.Message, "exception"); } }