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
Example #1
0
 protected void SetupFromXml(string fileName)
 {
     SuspendLayout();
     xmlLoader = new XmlLoader();
     SetupXmlLoader();
     if (fileName != null && fileName.Length > 0) {
         xmlLoader.LoadObjectFromFileDefinition(this, fileName);
     }
     ResumeLayout(false);
 }
Example #2
0
 protected void SetupFromXml(string fileName)
 {
     SuspendLayout();
     xmlLoader = new XmlLoader();
     SetupXmlLoader();
     if (fileName != null && fileName.Length > 0)
     {
         xmlLoader.LoadObjectFromFileDefinition(this, fileName);
     }
     ResumeLayout(false);
 }