Beispiel #1
0
        public static LineSeriesTheme CreateTheme()
        {
            LineSeriesTheme theme = new LineSeriesTheme();
            var             style = theme.GetStyle(eThemeMode.Dark) as LineSeriesStyle;

            style.LineColor    = DarkBackColor;
            style.AverageColor = DarkBackColor;

            var light = theme.GetStyle(eThemeMode.Light) as LineSeriesStyle;

            light.LineColor = LightBackColor;

            return(theme);
        }
Beispiel #2
0
        public static void GetAndSetLegendTheme(IMap map, LineSeriesTheme theme)
        {
            IEnumerable <ISeries> serieses = map.GetAllSeries();

            if (serieses == null)
            {
                return;
            }

            foreach (ISeries se in serieses)
            {
                if (se is LegendSeries)
                {
                    se.Theme = theme;
                }
            }
        }