Esempio n. 1
0
 public TConfigGroup(TConfigGroup group)
     : this()
 {
     Name     = group.Name;
     Groups   = new TConfigGroupCollection(group.Groups);
     Channels = new TLocalChannelCollection(group.Channels);
 }
Esempio n. 2
0
 public TConfigGroup(XElement group)
     : this()
 {
     Name     = group.SafeReadAttribute <string>("name", "");
     Channels = new TLocalChannelCollection(group.SafeReadElement("channels"));
     Groups   = new TConfigGroupCollection(group.SafeReadElement("groups"));
 }
Esempio n. 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);
        }
Esempio n. 4
0
 public TConfigGroup()
 {
     Name     = "";
     Groups   = new TConfigGroupCollection();
     Channels = new TLocalChannelCollection();
 }