private void ParseDocument() { ConfigurationSystem OConfigurationSystem = new ConfigurationSystem(FProjectRoot); FileInfo OFileInfo = new FileInfo(FFilename).GetCorrectlyCasedFileInfo(); FItemName = OFileInfo.GetNameWithoutExt(); XElement ORoot = FDocument.Element(XmlNamespace + "items"); Configuration OConfiguration = OConfigurationSystem.GetConfigurationFor(OFileInfo.DirectoryName); FConfiguration = OConfiguration; if (ORoot.Element(XmlNamespace + "configuration") != null) { FConfiguration = new Configuration(ORoot.Element(XmlNamespace + "configuration"), XmlNamespace); if (OConfiguration != null) { OConfiguration.Append(FConfiguration); FConfiguration = OConfiguration; } } foreach (XElement OViewItem in ORoot.Elements(XmlNamespace + "viewitem")) { FViewItems.Add(new ViewItem(this, FConfiguration, OViewItem)); } foreach (XElement OScalarItem in ORoot.Elements(XmlNamespace + "scalar")) { FScalarItems.Add(new ScalarItem(this, FConfiguration, OScalarItem)); } foreach (XElement OVoidItem in ORoot.Elements(XmlNamespace + "void")) { FVoidItems.Add(new VoidItem(this, FConfiguration, OVoidItem)); } }
private void InitConfiguration() { ConfigurationSystem OConfigurationSystem = new ConfigurationSystem(FProjectRoot); Configuration OConfiguration = OConfigurationSystem.GetConfigurationFor(FProjectRoot); FConfiguration = OConfiguration; }