Exemplo n.º 1
0
		public void AddChild(GenInfo data)
		{
			data.Parent = this;
			if (data is SectionInfo)
			{
				if (_sections == null)
					_sections = new GenInfoCollection();
				_sections[data.Name] = data;
			}
			else
			{
				if (_groups == null)
					_groups = new GenInfoCollection();
				_groups[data.Name] = data;
			}
		}
Exemplo n.º 2
0
 public void AddChild(GenInfo data)
 {
     data.Parent = this;
     if (data is SectionInfo)
     {
         if (_sections == null)
         {
             _sections = new GenInfoCollection();
         }
         _sections[data.Name] = data;
     }
     else
     {
         if (_groups == null)
         {
             _groups = new GenInfoCollection();
         }
         _groups[data.Name] = data;
     }
 }