Example #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;
			}
		}
Example #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;
     }
 }