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