Normal
Hello,I'm trying to add a few things to the Tellstick Pause plugin, original post here:https://forum.team-mediaportal.com/mediaportal-plugins-47/tellstick-pause-plugin-38400/index8.html#post558874I'm having a really newbie problem here. I cannot read the mediaportal.xml from the window plugin.Detailed explanation: There's a process plugin and a window plugin.In the process plugin I have:[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.In the window plugin:[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 TellstickPauseWindowWhat am I missing? what "Using" do I need for MediaPortal.Profile?Any help would be greatly appreciated...Thanks!
Hello,
I'm trying to add a few things to the Tellstick Pause plugin, original post here:
https://forum.team-mediaportal.com/mediaportal-plugins-47/tellstick-pause-plugin-38400/index8.html#post558874
I'm having a really newbie problem here. I cannot read the mediaportal.xml from the window plugin.
Detailed explanation:
There's a process plugin and a window plugin.
In the process plugin I have:
[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.
In the window plugin:
strButtonText = xmlReader.GetValue("Tellstick Pause", "mpMenuName");
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!