Hi,
I'm playing around with my first window plugin and now I got some problems with the GUIDialogs.
To be more precise, I try to write my own one.
I created a new class and inherited MediaPortal.Dialogs.GUIDialogWindow (the whole class is nearly a copy of GUIDialogYesNo). Then, I created my own skinfile (also, nearly a copy of dialogYesNo.xml).
to load and show the dialog, i tried it with the following code
But it failed (of course )
It seems, that I have to use the GUIWindowManager. But I have no idea how to do that.
If I want to load and show one of the existing ones, the GUIWindowManager gives me an Instance of a specified dialog. I just have to pass him some kind of WindowID.
But my own Dialog has no such WindowID.
How could I add my own WindowID to the existing ones?
Is there a simpler way to display a completely customised dialog (I would like to use any control I could use for skins)?
Any ideas?
Greez
JunkiXL
I'm playing around with my first window plugin and now I got some problems with the GUIDialogs.
To be more precise, I try to write my own one.
I created a new class and inherited MediaPortal.Dialogs.GUIDialogWindow (the whole class is nearly a copy of GUIDialogYesNo). Then, I created my own skinfile (also, nearly a copy of dialogYesNo.xml).
to load and show the dialog, i tried it with the following code
Code:
GUIDialogMyOwnOne dlg = new GUIDialogMyOwnOne();
dlg.DoModal(GetID);
It seems, that I have to use the GUIWindowManager. But I have no idea how to do that.
If I want to load and show one of the existing ones, the GUIWindowManager gives me an Instance of a specified dialog. I just have to pass him some kind of WindowID.
But my own Dialog has no such WindowID.
How could I add my own WindowID to the existing ones?
Is there a simpler way to display a completely customised dialog (I would like to use any control I could use for skins)?
Any ideas?
Greez
JunkiXL