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(); } }
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(); } }