C# Class Longkong.XmlForms.XmlLoader

This class is able to generate a GUI definition out of a XML file.
Mostrar archivo Open project: Longkong/Pojjaman

Public Methods

Method Description
CreateObjectFromFileDefinition ( string fileName ) : object

Loads the XML definition from fileName and sets creates the control.

CreateObjectFromXmlDefinition ( string xmlContent ) : object

Loads the XML definition from a xml definition and sets creates the control.

LoadObjectFromFileDefinition ( object customizationObject, string fileName ) : void

Loads the XML definition from fileName and sets creates the control.

LoadObjectFromStream ( object customizationObject, Stream stream ) : void
LoadObjectFromXmlDefinition ( string xmlContent ) : void

Loads the XML definition from a xml definition and sets creates the control.

LoadObjectFromXmlDocument ( object customizationObject, XmlDocument doc ) : void
XmlLoader ( ) : System

Creates a new instance of XmlLoader.

Private Methods

Method Description
SetAttributes ( object o, XmlElement el ) : void

Sets all properties in the object o to the xml element el defined properties.

SetUpObject ( object currentObject, XmlElement element ) : void

Sets the properties of an object currentObject to the contents of the xml element element

SetValue ( object o, string propertyName, string val ) : void

Sets a property called propertyName in object o to val. This method performs all neccessary casts.

Method Details

CreateObjectFromFileDefinition() public method

Loads the XML definition from fileName and sets creates the control.
public CreateObjectFromFileDefinition ( string fileName ) : object
fileName string /// The filename of the XML definition file to load. ///
return object

CreateObjectFromXmlDefinition() public method

Loads the XML definition from a xml definition and sets creates the control.
public CreateObjectFromXmlDefinition ( string xmlContent ) : object
xmlContent string
return object

LoadObjectFromFileDefinition() public method

Loads the XML definition from fileName and sets creates the control.
public LoadObjectFromFileDefinition ( object customizationObject, string fileName ) : void
customizationObject object /// The object to customize. (should be a control or form) /// This is object, because this class may be extended later. ///
fileName string /// The filename of the XML definition file to load. ///
return void

LoadObjectFromStream() public method

public LoadObjectFromStream ( object customizationObject, Stream stream ) : void
customizationObject object
stream Stream
return void

LoadObjectFromXmlDefinition() public method

Loads the XML definition from a xml definition and sets creates the control.
public LoadObjectFromXmlDefinition ( string xmlContent ) : void
xmlContent string
return void

LoadObjectFromXmlDocument() public method

public LoadObjectFromXmlDocument ( object customizationObject, XmlDocument doc ) : void
customizationObject object
doc System.Xml.XmlDocument
return void

XmlLoader() public method

Creates a new instance of XmlLoader.
public XmlLoader ( ) : System
return System