Пример #1
0
 public TConfigGroup(TConfigGroup group)
     : this()
 {
     Name     = group.Name;
     Groups   = new TConfigGroupCollection(group.Groups);
     Channels = new TLocalChannelCollection(group.Channels);
 }
Пример #2
0
 public TConfigGroup(XElement group)
     : this()
 {
     Name     = group.SafeReadAttribute <string>("name", "");
     Channels = new TLocalChannelCollection(group.SafeReadElement("channels"));
     Groups   = new TConfigGroupCollection(group.SafeReadElement("groups"));
 }
Пример #3
0
        private TLocalChannelCollection _GetChannels(TConfigGroup group)
        {
            TLocalChannelCollection RetVal = new TLocalChannelCollection();

            RetVal.Add(group.Channels);
            foreach (TConfigGroup GroupItem in group.Groups)
            {
                RetVal.Add(_GetChannels(GroupItem));
            }
            return(RetVal);
        }
Пример #4
0
 public TConfigGroup()
 {
     Name     = "";
     Groups   = new TConfigGroupCollection();
     Channels = new TLocalChannelCollection();
 }