Пример #1
0
            public LegendChild_WOC(Serie serie, Font font, Color textColor, Chart_WOC chart)
            {
                Text       = serie.Name;
                Font       = font;
                ForeColor  = serie.LineColor;
                Width      = 100;
                _serie     = serie;
                _textColor = textColor == Color.Empty ? ForeColor : textColor;
                Font       = new Font(Font, _serie.Selected ? FontStyle.Bold : FontStyle.Regular);

                DoubleClick += (s, e) => OnClick(e);
            }
Пример #2
0
            public LegendChild_WOC(Serie serie, Font font, Color textColor, int height, Chart_WOC chart)
            {
                Text       = serie.name;
                Font       = font;
                ForeColor  = serie.lineColor;
                Width      = 100;
                _chart     = chart;
                _serie     = serie;
                _textColor = textColor == Color.Empty ? ForeColor : textColor;
                Font       = new Font(Font, _serie.selected ? FontStyle.Bold : FontStyle.Regular);

                Click       += click;
                DoubleClick += click;
            }