示例#1
0
        private void BeginColorBars_Click(object sender, System.EventArgs e)
        {
            NGradientFillStyle gradientFillStyle = (NGradientFillStyle)(m_Bar.FillStyle);

            colorDialog1.Color = gradientFillStyle.BeginColor;

            if (colorDialog1.ShowDialog() == DialogResult.OK)
            {
                gradientFillStyle.BeginColor = colorDialog1.Color;
                nChartControl1.Refresh();
            }
        }
示例#2
0
        private void BeginColorBars_Click(object sender, System.EventArgs e)
        {
            NHatchFillStyle hatchFillStyle = (NHatchFillStyle)m_Bar.FillStyle;

            colorDialog1.Color = hatchFillStyle.ForegroundColor;

            if (colorDialog1.ShowDialog() == DialogResult.OK)
            {
                hatchFillStyle.ForegroundColor = colorDialog1.Color;
                nChartControl1.Refresh();
            }
        }