Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
 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);
   }
 }