public void AddSubItem(IConfigSwitchOrGroup input)
 {
     List<IConfigSwitchOrGroup> a;
     if (ItemList == null)
     {
         a = new List<IConfigSwitchOrGroup>();
     }
     else
     {
         a = new List<IConfigSwitchOrGroup>(ItemList);
     }
     a.Add(input);
     ItemList = a.ToArray();
 }
Example #2
0
        public void AddSubItem(IConfigSwitchOrGroup input)
        {
            List <IConfigSwitchOrGroup> a;

            if (ItemList == null)
            {
                a = new List <IConfigSwitchOrGroup>();
            }
            else
            {
                a = new List <IConfigSwitchOrGroup>(ItemList);
            }
            a.Add(input);
            ItemList = a.ToArray();
        }
 public ApplicationSettings()
 {
     FlushTime = 60;
     ItemConfigWoods = new IConfigSwitchOrGroup[0];
     SwitchTypeItems = new Setting_SwitchType[0];
 }
 public void AddSubItem(IConfigSwitchOrGroup input)
 {
     throw new NotSupportedException("交换机无法增加子元素");
 }
 public void SetItemList(IConfigSwitchOrGroup[] List)
 {
     throw new NotSupportedException("交换机无法拥有子元素");
 }
Example #6
0
 public void AddSubItem(IConfigSwitchOrGroup input)
 {
     throw new NotSupportedException("交换机无法增加子元素");
 }
 public void SetItemList(IConfigSwitchOrGroup[] List)
 {
     ItemList = List;
 }
Example #8
0
 public ApplicationSettings()
 {
     FlushTime       = 60;
     ItemConfigWoods = new IConfigSwitchOrGroup[0];
     SwitchTypeItems = new Setting_SwitchType[0];
 }