Hi guys, I'm new to plugin development.
I'm trying to write a little process plugin. I've followed the "How to write a plugin for MP" tutorial.
For the moment, my goal is very simple, I just want to display a pop-up when MP starts.
Here is hat I've done for now:
As you can see, this is very simple...
I can see it and enable it under the configurator, but my pop-up does not show at MP's startup... What am I doing wrong?
At the same time if any one could tell me how to do a thread or a timer, that would be good
Ludo...
I'm trying to write a little process plugin. I've followed the "How to write a plugin for MP" tutorial.
For the moment, my goal is very simple, I just want to display a pop-up when MP starts.
Here is hat I've done for now:
Code:
using System;
using System.Windows.Forms;
using MediaPortal.GUI.Library;
using MediaPortal.Dialogs;
namespace WhosCalling
{
public class Class1 : GUIWindow, ISetupForm
{
public Class1()
{
//
// TODO: Add constructor logic here
//
}
#region IPlugin Members
public void Start()
{
GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK);
dlg.SetHeading("Hello World");
dlg.SetLine(1, String.Empty);
dlg.SetLine(2, String.Empty);
dlg.SetLine(3, String.Empty);
dlg.DoModal(GUIWindowManager.ActiveWindow);
}
public void Stop()
{
}
#endregion
#region ISetupForm Members
// Returns the name of the plugin which is shown in the plugin menu
public string PluginName()
{
return "MyFirstPlugin";
}
[...]
#endregion
}
}
As you can see, this is very simple...
I can see it and enable it under the configurator, but my pop-up does not show at MP's startup... What am I doing wrong?
At the same time if any one could tell me how to do a thread or a timer, that would be good
Ludo...