home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Can't read MediaPortal.xml from window plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="moryoav" data-source="post: 558888" data-attributes="member: 85205"><p>Hello,</p><p></p><p>I'm trying to add a few things to the Tellstick Pause plugin, original post here:</p><p><a href="https://forum.team-mediaportal.com/mediaportal-plugins-47/tellstick-pause-plugin-38400/index8.html#post558874" target="_blank">https://forum.team-mediaportal.com/mediaportal-plugins-47/tellstick-pause-plugin-38400/index8.html#post558874</a></p><p></p><p>I'm having a really newbie problem here. I cannot read the mediaportal.xml from the window plugin.</p><p></p><p><strong>Detailed explanation: </strong></p><p></p><p>There's a process plugin and a window plugin.</p><p></p><p><u>In the process plugin I have:</u></p><p>[CODE]using (MediaPortal.Profile.Settings xmlReader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MediaPortal.xml")))</p><p>{</p><p>MPMenuName.Text = xmlReader.GetValue("Tellstick Pause", "mpMenuName");</p><p>}[/CODE]</p><p></p><p>That works fine.</p><p><u>In the window plugin:</u></p><p>[CODE]using (MediaPortal.Profile.Settings xmlReader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MediaPortal.xml")))</p><p> {</p><p> strButtonText = xmlReader.GetValue("Tellstick Pause", "mpMenuName");</p><p> }[/CODE]</p><p></p><p>When I compile this I get:</p><p></p><p>Error 1 The type or namespace name 'Profile' does not exist in the namespace 'MediaPortal' (are you missing an assembly reference?) c:\Program Files\Team MediaPortal\Tellstick\Tellstick\TellstickPauseWindow\TellstickPauseWindow.cs 55 32 TellstickPauseWindow</p><p></p><p>What am I missing? what "Using" do I need for MediaPortal.Profile?</p><p></p><p>Any help would be greatly appreciated...</p><p>Thanks!</p><p></p><p><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p></blockquote><p></p>
[QUOTE="moryoav, post: 558888, member: 85205"] Hello, I'm trying to add a few things to the Tellstick Pause plugin, original post here: [url]https://forum.team-mediaportal.com/mediaportal-plugins-47/tellstick-pause-plugin-38400/index8.html#post558874[/url] I'm having a really newbie problem here. I cannot read the mediaportal.xml from the window plugin. [B]Detailed explanation: [/B] There's a process plugin and a window plugin. [U]In the process plugin I have:[/U] [CODE]using (MediaPortal.Profile.Settings xmlReader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MediaPortal.xml"))) { MPMenuName.Text = xmlReader.GetValue("Tellstick Pause", "mpMenuName"); }[/CODE] That works fine. [U]In the window plugin:[/U] [CODE]using (MediaPortal.Profile.Settings xmlReader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MediaPortal.xml"))) { strButtonText = xmlReader.GetValue("Tellstick Pause", "mpMenuName"); }[/CODE] When I compile this I get: Error 1 The type or namespace name 'Profile' does not exist in the namespace 'MediaPortal' (are you missing an assembly reference?) c:\Program Files\Team MediaPortal\Tellstick\Tellstick\TellstickPauseWindow\TellstickPauseWindow.cs 55 32 TellstickPauseWindow What am I missing? what "Using" do I need for MediaPortal.Profile? Any help would be greatly appreciated... Thanks! :thx: [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Can't read MediaPortal.xml from window plugin
Contact us
RSS
Top
Bottom