protected void SetupFromXmlStream(Stream stream) { SuspendLayout(); xmlLoader = new XmlLoader(); InitializeXmlLoader(); if (stream != null) { xmlLoader.LoadObjectFromStream(this, stream); } ResumeLayout(false); }
protected void SetupFromXmlFile(string fileName) { SuspendLayout(); xmlLoader = new XmlLoader(); InitializeXmlLoader(); if (fileName != null && fileName.Length > 0) { xmlLoader.LoadObjectFromFileDefinition(this, fileName); } ResumeLayout(false); }