public static ChildGroupPack Read(GroupAdapter groupAdapter) { #if DEBUG if (DebugMode) { Debug.Log(string.Format(@"Read")); } #endif ChildGroupPack childGroupPack = new ChildGroupPack(groupAdapter); var groupDescriptors = DesignerReflection.GetChildGroupsReferences(groupAdapter); foreach (ChildGroupDescriptor groupDescriptor in groupDescriptors) { List <ComponentAdapter> adapters = Core.Reflection.CoreReflector.GetMemberValue(groupDescriptor.CollectionMemberInfo, groupAdapter) as List <ComponentAdapter>; ChildGroup childGroup = new ChildGroup(adapters) { GroupName = groupDescriptor.CollectionMemberInfo.Name }; childGroupPack.Add(childGroup); } #if DEBUG if (DebugMode) { Debug.Log("Read. childGroupPack: " + childGroupPack); } #endif return(childGroupPack); }
public void Add(ChildGroup group) { _groups.Add(group); }
public static ChildGroupPack Read(GroupAdapter groupAdapter) { #if DEBUG if (DebugMode) { Debug.Log(string.Format(@"Read")); } #endif ChildGroupPack childGroupPack = new ChildGroupPack(groupAdapter); var groupDescriptors = DesignerReflection.GetChildGroupsReferences(groupAdapter); foreach (ChildGroupDescriptor groupDescriptor in groupDescriptors) { List<ComponentAdapter> adapters = Core.Reflection.CoreReflector.GetMemberValue(groupDescriptor.CollectionMemberInfo, groupAdapter) as List<ComponentAdapter>; ChildGroup childGroup = new ChildGroup(adapters) { GroupName = groupDescriptor.CollectionMemberInfo.Name }; childGroupPack.Add(childGroup); } #if DEBUG if (DebugMode) { Debug.Log("Read. childGroupPack: " + childGroupPack); } #endif return childGroupPack; }