NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 30 31 32 33 34 … 93 Next »
GetConfigFormInstance XML document?

 
  • 0 Vote(s) - 0 Average
GetConfigFormInstance XML document?
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#1
2008-05-23, 11:20 PM
Code:
public override Form GetConfigFormInstance(XmlDocument document)
So what's that document all about then? Does it contain anything interesting?

Cheers,
Brian
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2008-05-23, 11:20 PM
The document is the config.xml file, which can be used to query or save settings.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#3
2008-05-23, 11:40 PM
sub Wrote:The document is the config.xml file, which can be used to query or save settings.
OK, I get it. Thanks.
fluffykeith
Offline

Senior Member

Posts: 398
Threads: 69
Joined: Nov 2007
#4
2008-06-10, 02:43 PM
Not sure I do!

Is that different to the helper function GetConfiguration()?

Also on a marginally near topic - is there an example of how a plugin is configured in the config tool?

cheers

Keith
Old broken setup - Zalman HD160+ box,  AMD Athlon 5400+, 3GB DDR2, Motherboard Gigabyte GA-M61P-S3
Hauppauge Nova-T PCI
Hauppauge Nova-S PCI
BlackGold Dual T2, S2 PCI
1x 2TB SATA
Windows 7 Pro
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#5
2008-06-10, 03:57 PM
In your plugin code, populate a method as follows:

Code:
public Form GetConfigFormInstance(System.Xml.XmlDocument document)
{
    return new MyPluginConfigForm(document);
}

MyPluginConfigForm (name should reflect your plugin) is a normal windows form with a constructor as follows:

Code:
public MyPluginConfigForm(XmlDocument document)

The document is the config.xml in a XmlDocument object.

Use this document object to read and write settings into the Plugins section for your specific plugin.

When in the gbpvr config program plugin tab, if the user selects the plugin to manage, the plugin's getConfigFormsInstance() method is called. If it returns a Windows form object, that object is loaded and displayed.

The WizTools provides an example (WizUiHelperDemoPlugin) that shows how this works.
fluffykeith
Offline

Senior Member

Posts: 398
Threads: 69
Joined: Nov 2007
#6
2008-06-12, 08:20 AM
Thanks for the info
Old broken setup - Zalman HD160+ box,  AMD Athlon 5400+, 3GB DDR2, Motherboard Gigabyte GA-M61P-S3
Hauppauge Nova-T PCI
Hauppauge Nova-S PCI
BlackGold Dual T2, S2 PCI
1x 2TB SATA
Windows 7 Pro
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  The node to be inserted is from a different document context imilne 7 4,337 2012-01-30, 08:36 AM
Last Post: bgowland

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode