示例#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();
 }