internal void CreateSection(SectionGroupInfo groupInfo, string name, APGenSection section) { if (groupInfo.HasChild(name)) { throw new APGenException(APResource.GetString(APResource.APGen_SectionAlreadyExists, name)); } if (section.SectionInformation.Type == null) { section.SectionInformation.Type = GenHost.GetGenTypeName(section.GetType()); } SectionInfo sectionInfo = new SectionInfo(name, section.SectionInformation); sectionInfo.StreamName = _streamName; sectionInfo.GenHost = GenHost; groupInfo.AddChild(sectionInfo); _elementData[sectionInfo] = section; }
internal void CreateSectionGroup(SectionGroupInfo parentGroup, string name, APGenSectionGroup section) { if (parentGroup.HasChild(name)) { throw new APGenException(APResource.GetString(APResource.APGen_SectionAlreadyExists, name)); } if (section.Type == null) { section.Type = GenHost.GetGenTypeName(section.GetType()); } section.SetName(name); SectionGroupInfo sectionInfo = new SectionGroupInfo(name, section.Type); sectionInfo.StreamName = _streamName; sectionInfo.GenHost = GenHost; parentGroup.AddChild(sectionInfo); _elementData[sectionInfo] = section; section.Initialize(this, sectionInfo); }
internal void CreateSectionGroup(SectionGroupInfo parentGroup, string name, APGenSectionGroup section) { if (parentGroup.HasChild(name)) throw new APGenException(APResource.GetString(APResource.APGen_SectionAlreadyExists, name)); if (section.Type == null) section.Type = GenHost.GetGenTypeName(section.GetType()); section.SetName(name); SectionGroupInfo sectionInfo = new SectionGroupInfo(name, section.Type); sectionInfo.StreamName = _streamName; sectionInfo.GenHost = GenHost; parentGroup.AddChild(sectionInfo); _elementData[sectionInfo] = section; section.Initialize(this, sectionInfo); }
internal void CreateSection(SectionGroupInfo groupInfo, string name, APGenSection section) { if (groupInfo.HasChild(name)) throw new APGenException(APResource.GetString(APResource.APGen_SectionAlreadyExists, name)); if (section.SectionInformation.Type == null) section.SectionInformation.Type = GenHost.GetGenTypeName(section.GetType()); SectionInfo sectionInfo = new SectionInfo(name, section.SectionInformation); sectionInfo.StreamName = _streamName; sectionInfo.GenHost = GenHost; groupInfo.AddChild(sectionInfo); _elementData[sectionInfo] = section; }