"using Media Portal.GUI.Library;" want work (1 Viewer)

bigal

Portal Pro
September 18, 2005
159
0
Gothenburg
I am trying to work with Visual C# Express 2005

but when i try to use "using Media Portal.GUI.Library;" it doesn't like the space between 'Media' and 'Portal'

how do i do?

using 'Media Portal.GUI.Library'; or "Media Portal.GUI.Library"; do not work ether...

/BigAl
 

GF__74

Portal Member
June 8, 2008
16
1
Akl, NZ
Home Country
New Zealand New Zealand
If you have followed the tutorial for the plugin. The code that makes it a windows plugin (rather than a process plugin) is this:

Windows Plugin
Code:
public bool GetHome(out string strButtonText, out string strButtonImage,
          out string strButtonImageFocus, out string strPictureImage)
        {
            strButtonText = PluginName();
            strButtonImage = String.Empty;
            strButtonImageFocus = String.Empty;
            strPictureImage = String.Empty;
            return true;
        }

Process Plugin
Code:
    public bool GetHome(out string strButtonText, out string strButtonImage, 
      out string strButtonImageFocus, out string strPictureImage)
    {
      strButtonText = String.Empty;
      strButtonImage = String.Empty;
      strButtonImageFocus = String.Empty;
      strPictureImage = String.Empty;
      return false;
    }
This will put it in the 'My Plugins' screen by default (for MediaPortal v1.0). If you want it on the 'Home' screen you need to change its settings in 'MediaPortal Configuration'.

G
 

Users who are viewing this thread

Top Bottom