【发布时间】:2018-04-11 15:52:03
【问题描述】:
这是我的代码 我想根据用户选择组合框来更改折线图颜色。 如何输入 comboBox1_SelectedIndexChanged? 谢谢您的帮助。真的很感激!!
private void showGraph(List<double> closeList)
{
List<double> top;
List<double> medium;
List<double> bottom;
//some calculation to find out top, medium, bottom by using closeList
//linechart is drawing here
}
private void dataGridView1_SelectionChanged(object sender, DataGridViewCellEventArgs e)
{
List<double> closeList;
showGraph(closeList);
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if(comboBox1.SelectedItem == "Yellow")
{
}
else if(comboBox1.SelectedItem == "Red")
{
}
}
【问题讨论】:
标签: c# colors combobox linechart