Esempio n. 1
0
 private void OnClone(ColumnItemCollection collection, ColumnItemCollection collection2)
 {
     foreach (var item in collection2)
     {
         var _o = (ColumnItem)item.Clone();
         if (item.Columns.Count > 0)
         {
             OnClone(item.Columns, item.Columns);
         }
         collection.Add(_o);
     }
 }
Esempio n. 2
0
 private void GetSettingDatas(ref ICollection <ColumnItem> settingDatas, ColumnItemCollection columns)
 {
     foreach (ColumnItem column in columns)
     {
         if (column.Columns.Count > 0)
         {
             GetSettingDatas(ref settingDatas, column.Columns);
         }
         else
         {
             settingDatas.Add(column);
         }
     }
 }