Beispiel #1
0
        private static themeCategory GetThemeCategorial(CategorialTheme theme)
        {
            var themeCategory = new themeCategory
            {
                columnName   = theme.AttributeName,
                defaultStyle = GetDefaultStyle(theme)
            };

            var catThemeItems = new List <themeItem>();

            foreach (var item in theme.ThemeItems)
            {
                // Add theme items (style and label) to the CategorialTheme
                var catThemeItem = new themeItem
                {
                    label = item.Label,
                    style = GetStyle(item)
                };

                catThemeItems.Add(catThemeItem);
            }

            themeCategory.categoryThemeItems = catThemeItems.ToArray();
            return(themeCategory);
        }
Beispiel #2
0
        private static themeCategory GetThemeCategorial(CategorialTheme theme)
        {
            var themeCategory = new themeCategory
                                    {
                                        columnName = theme.AttributeName,
                                        defaultStyle = GetDefaultStyle(theme)
                                    };

            var catThemeItems = new List<themeItem>();

            foreach (var item in theme.ThemeItems)
            {
                // Add theme items (style and label) to the CategorialTheme
                var catThemeItem = new themeItem
                                       {
                                           label = item.Label, 
                                           style = GetStyle(item)
                                       };

                catThemeItems.Add(catThemeItem);
            }

            themeCategory.categoryThemeItems = catThemeItems.ToArray();
            return themeCategory;
        }