public void Save() { SaveEncryptedPassword(); using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.MPSettings()) { xmlwriter.SetValueAsBool("radiotime", "mp3", Mp3); xmlwriter.SetValueAsBool("radiotime", "wma", Wma); xmlwriter.SetValueAsBool("radiotime", "real", Real); xmlwriter.SetValueAsBool("radiotime", "UseVideo", UseVideo); xmlwriter.SetValueAsBool("radiotime", "JumpNowPlaying", JumpNowPlaying); xmlwriter.SetValue("radiotime", "user", User); xmlwriter.SetValueAsBool("radiotime", "showpresets", ShowPresets); xmlwriter.SetValue("radiotime", "pluginname", PluginName); xmlwriter.SetValue("radiotime", "FolderId", FolderId); xmlwriter.SetValueAsBool("radiotime", "StartWithFastPreset", StartWithFastPreset); var s = ""; foreach (var history in SearchHistory) { s += history + "|"; } xmlwriter.SetValue("radiotime", "searchHistory", s); s = ""; foreach (var history in ArtistSearchHistory) { s += history + "|"; } xmlwriter.SetValue("radiotime", "artistSearchHistory", s); } }
protected override void SaveSettings() { base.SaveSettings(); using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.MPSettings()) { xmlwriter.SetValue(SerializeName, "layout", (int)currentLayout); xmlwriter.SetValueAsBool(SerializeName, "sortasc", m_bSortAscending); } }
protected override void SaveSettings() { base.SaveSettings(); using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.MPSettings()) { xmlwriter.SetValue(SerializeName, "layout", (int)currentLayout); xmlwriter.SetValueAsBool(SerializeName, "sortasc", m_bSortAscending); xmlwriter.SetValue(SerializeName, "sortmethod", (int)currentSortMethod); } }