C# 클래스 Longkong.XmlForms.XmlLoader

This class is able to generate a GUI definition out of a XML file.
파일 보기 프로젝트 열기: Longkong/Pojjaman

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

CreateObjectFromFileDefinition() 공개 메소드

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. ///
리턴 object

CreateObjectFromXmlDefinition() 공개 메소드

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

LoadObjectFromFileDefinition() 공개 메소드

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. ///
리턴 void

LoadObjectFromStream() 공개 메소드

public LoadObjectFromStream ( object customizationObject, Stream stream ) : void
customizationObject object
stream Stream
리턴 void

LoadObjectFromXmlDefinition() 공개 메소드

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

LoadObjectFromXmlDocument() 공개 메소드

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

XmlLoader() 공개 메소드

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