Beispiel #1
0
        internal APGenSectionGroup GetSectionGroupInstance(SectionGroupInfo groupInfo)
        {
            APGenSectionGroup sectionGroup = groupInfo.CreateInstance() as APGenSectionGroup;

            if (sectionGroup != null)
            {
                sectionGroup.Initialize(this, groupInfo);
            }
            return(sectionGroup);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
		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);
		}