From: <fr...@us...> - 2008-04-26 11:49:11
|
Revision: 1721 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1721&view=rev Author: framug Date: 2008-04-26 04:49:08 -0700 (Sat, 26 Apr 2008) Log Message: ----------- - MyExplorer.xml is loaded/written in correct folder. Modified Paths: -------------- trunk/plugins/MyExplorer/GUIExplorer.cs trunk/plugins/MyExplorer/SetupForm.cs Modified: trunk/plugins/MyExplorer/GUIExplorer.cs =================================================================== --- trunk/plugins/MyExplorer/GUIExplorer.cs 2008-04-26 11:46:12 UTC (rev 1720) +++ trunk/plugins/MyExplorer/GUIExplorer.cs 2008-04-26 11:49:08 UTC (rev 1721) @@ -26,6 +26,7 @@ using MediaPortal.Util; using MediaPortal.GUI.Library; using MediaPortal.Dialogs; +using MediaPortal.Configuration; #endregion namespace MediaPortal.GUI.GUIExplorer @@ -770,7 +771,7 @@ /// </summary> private void LoadShareSettings() { - using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyExplorer.xml")) + using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyExplorer.xml"))) { showOnlyShares=xmlreader.GetValueAsBool("myexplorer","show_only_shares",false); } @@ -781,7 +782,7 @@ /// </summary> private void LoadSettings() { - using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyExplorer.xml")) + using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyExplorer.xml"))) { tempFolder=xmlreader.GetValueAsString("myexplorer","temp_folder",""); enableDelete=xmlreader.GetValueAsBool("myexplorer","enable_delete",false); Modified: trunk/plugins/MyExplorer/SetupForm.cs =================================================================== --- trunk/plugins/MyExplorer/SetupForm.cs 2008-04-26 11:46:12 UTC (rev 1720) +++ trunk/plugins/MyExplorer/SetupForm.cs 2008-04-26 11:49:08 UTC (rev 1721) @@ -29,6 +29,7 @@ using System.ComponentModel; using System.Windows.Forms; using MediaPortal.GUI.Library; +using MediaPortal.Configuration; namespace GUIExplorer { @@ -319,7 +320,7 @@ private void LoadSettings() { - using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyExplorer.xml")) + using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyExplorer.xml"))) { textBox1.Text = xmlreader.GetValueAsString("myexplorer", "temp_folder", ""); checkBox1.Checked = xmlreader.GetValueAsBool("myexplorer", "show_only_shares", false); @@ -331,7 +332,7 @@ private void SaveSettings() { - using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MyExplorer.xml")) + using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyExplorer.xml"))) { xmlwriter.SetValue("myexplorer", "temp_folder", textBox1.Text); xmlwriter.SetValueAsBool("myexplorer", "show_only_shares", checkBox1.Checked); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |