2014-03-22, 02:34 AM
Having a problem getting my files to play when using the Popup screen.
Get the following error;
"Object reference not set to an instance of an object"
I think it's stopping on the first DIM statement.
Public Sub HandleButtonCommand1(buttonName As String) Implements NUtility.Controls.UiButtonList.IUiButtonListCallback.HandleButtonCommand
If buttonName = "Play" Then
Dim ONumber = listShowTimes.GetSelectedObject("@oid")
Dim recording As ScheduledRecording = ScheduledRecording.LoadByOID(ONumber)
PluginHelperFactory.GetPluginHelper().PlayVideoFile((recording.Filename))
End If
End Sub
If I use the same 3 lines of code in my main module, under the Activate sub it works fine.
Public Overrides Sub ActivateItem(selectedObject As UiList.ListObject)
Get the following error;
"Object reference not set to an instance of an object"
I think it's stopping on the first DIM statement.
Public Sub HandleButtonCommand1(buttonName As String) Implements NUtility.Controls.UiButtonList.IUiButtonListCallback.HandleButtonCommand
If buttonName = "Play" Then
Dim ONumber = listShowTimes.GetSelectedObject("@oid")
Dim recording As ScheduledRecording = ScheduledRecording.LoadByOID(ONumber)
PluginHelperFactory.GetPluginHelper().PlayVideoFile((recording.Filename))
End If
End Sub
If I use the same 3 lines of code in my main module, under the Activate sub it works fine.
Public Overrides Sub ActivateItem(selectedObject As UiList.ListObject)