Normal
Thanks Jameson_Uk, But I am pretty sure I have... I will copy and paste my code directly here.. Maybe I have mistyped something, but I checked it a couple of times.[CODE]Imports SystemImports System.Windows.FormsImports MediaPortal.GUI.LibraryImports MediaPortal.DialogsNamespace MPInsertDVD Public Class Class1 Inherits GUIWindow Implements ISetupForm Public Sub New() End Sub ' With GetID it will be an window-plugin / otherwise a process-plugin ' Enter the id number here again Public Overrides Property GetID() As Integer Get Return 551 End Get Set(ByVal value As Integer) End Set End Property ' Returns the name of the plugin which is shown in the plugin menu Public Function PluginName() As String Return "MP DVD Insert" End Function ' Returns the description of the plugin is shown in the plugin menu Public Function Description() As String Return "Media Portal - DVD Insert - Create Default Video File for DVD/BluRay Collection" End Function ' Returns the author of the plugin which is shown in the plugin menu Public Function Author() As String Return "Paul Rainbow" End Function ' show the setup dialog Public Sub ShowPlugin() MessageBox.Show("Nothing to configure, this is just an example") End Sub ' Indicates whether plugin can be enabled/disabled Public Function CanEnable() As Boolean Return True End Function ' Get Windows-ID Public Function GetWindowId() As Integer ' WindowID of windowplugin belonging to this setup ' enter your own unique code Return 551 End Function ' Indicates if plugin is enabled by default; Public Function DefaultEnabled() As Boolean Return True End Function ' indicates if a plugin has it's own setup screen Public Function HasSetup() As Boolean Return True End Function ''' <summary> ''' If the plugin should have it's own button on the main menu of MediaPortal then it ''' should return true to this method, otherwise if it should not be on home ''' it should return false ''' </summary> ''' <param name="strButtonText">text the button should have</param> ''' <param name="strButtonImage">image for the button, or empty for default</param> ''' <param name="strButtonImageFocus">image for the button, or empty for default</param> ''' <param name="strPictureImage">subpicture for the button or empty for none</param> ''' <returns>true : plugin needs it's own button on home ''' false : plugin does not need it's own button on home</returns> Public Function GetHome(ByRef strButtonText As String, _ ByRef strButtonImage As String, _ ByRef strButtonImageFocus As String, _ ByRef strPictureImage As String) As Boolean strButtonText = String.Empty strButtonImage = String.Empty strButtonImageFocus = String.Empty strPictureImage = String.Empty Return False End Function End ClassEnd Namespace[/CODE]The other main thing I could see by the References... but they look fine to me.Pilehave, I am just used to VB as it is the mainformat I have learnt.. I guess I just find it easier to ready/understand.
Thanks Jameson_Uk, But I am pretty sure I have... I will copy and paste my code directly here.. Maybe I have mistyped something, but I checked it a couple of times.
[CODE]Imports System
Imports System.Windows.Forms
Imports MediaPortal.GUI.Library
Imports MediaPortal.Dialogs
Namespace MPInsertDVD
Public Class Class1
Inherits GUIWindow
Implements ISetupForm
Public Sub New()
End Sub
' With GetID it will be an window-plugin / otherwise a process-plugin
' Enter the id number here again
Public Overrides Property GetID() As Integer
Get
Return 551
End Get
Set(ByVal value As Integer)
End Set
End Property
' Returns the name of the plugin which is shown in the plugin menu
Public Function PluginName() As String
Return "MP DVD Insert"
End Function
' Returns the description of the plugin is shown in the plugin menu
Public Function Description() As String
Return "Media Portal - DVD Insert - Create Default Video File for DVD/BluRay Collection"
' Returns the author of the plugin which is shown in the plugin menu
Public Function Author() As String
Return "Paul Rainbow"
' show the setup dialog
Public Sub ShowPlugin()
MessageBox.Show("Nothing to configure, this is just an example")
' Indicates whether plugin can be enabled/disabled
Public Function CanEnable() As Boolean
Return True
' Get Windows-ID
Public Function GetWindowId() As Integer
' WindowID of windowplugin belonging to this setup
' enter your own unique code
' Indicates if plugin is enabled by default;
Public Function DefaultEnabled() As Boolean
' indicates if a plugin has it's own setup screen
Public Function HasSetup() As Boolean
''' <summary>
''' If the plugin should have it's own button on the main menu of MediaPortal then it
''' should return true to this method, otherwise if it should not be on home
''' it should return false
''' </summary>
''' <param name="strButtonText">text the button should have</param>
''' <param name="strButtonImage">image for the button, or empty for default</param>
''' <param name="strButtonImageFocus">image for the button, or empty for default</param>
''' <param name="strPictureImage">subpicture for the button or empty for none</param>
''' <returns>true : plugin needs it's own button on home
''' false : plugin does not need it's own button on home</returns>
Public Function GetHome(ByRef strButtonText As String, _
ByRef strButtonImage As String, _
ByRef strButtonImageFocus As String, _
ByRef strPictureImage As String) As Boolean
strButtonText = String.Empty
strButtonImage = String.Empty
strButtonImageFocus = String.Empty
strPictureImage = String.Empty
Return False
End Class
End Namespace[/CODE]
The other main thing I could see by the References... but they look fine to me.
Pilehave, I am just used to VB as it is the mainformat I have learnt.. I guess I just find it easier to ready/understand.