Hello,
I'm trying to add a few things to the Tellstick Pause plugin, original post here:
https://forum.team-mediaportal.com/...ick-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:
That works fine.
In the window plugin:
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!

I'm trying to add a few things to the Tellstick Pause plugin, original post here:
https://forum.team-mediaportal.com/...ick-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");
}
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");
}
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!