void CreateFilteredData() { foreach (int i in Enum.GetValues(typeof(ThemeLayer))) { LayerCategory tempData = new LayerCategory(((ThemeLayer)i).ToString(), string.Empty); var data = j_TargetObjectChilds.Where(x => x.tag.Equals(tempData.layerName)); if (data.Count() > 0) { tempData.layerObjectsPool.AddRange(data); j_FilteredLayersList.Add(tempData); } } }
void CreateFilteredData() { if (JMRToolkit.JMRThemeManager == null || JMRToolkit.JMRThemeManager.GetColorPreferences() == null) { return; } //TODO find all objects j_FilteredLayerData = new List <LayerCategory>(); List <ThemeSystem.Colors> layerColorData = JMRToolkit.JMRThemeManager.GetColorPreferences(); for (int colorIndex = 0; colorIndex < layerColorData.Count; colorIndex++) { LayerCategory tempData = new LayerCategory(layerColorData[colorIndex].name, layerColorData[colorIndex].color); var data = j_TargetObjectChilds.Where(x => x.tag.Equals(tempData.layerName)); if (data.Count() > 0) { tempData.layerObjectsPool.AddRange(data); j_FilteredLayerData.Add(tempData); } } }