Exemplo n.º 1
0
 DataTable dt         = null; //数据源
 private void WDLChart_Load(object sender, EventArgs e)
 {
     TreeNodeOperate.generatePlotTree(treeView2);
     cmbCropType.DataSource = DataManager.get_CropType();
     string[] items = { "柱状图", "线状图" };
     cmb_ChartType.DataSource = items;
     cmb_Type.SelectedIndex   = 1;
 }
Exemplo n.º 2
0
 private void MultPlotChart_Load(object sender, EventArgs e)
 {
     list_IndexType.DataSource = ChartOperate.get_chartIndexType();
     string[] items = { "线状图", "柱状图" };
     TreeNodeOperate.generatePlotTree(treeView2);
     cmb_StaticsType.DataSource = ChartOperate.get_chartStaticsType();
     cmb_ChartType.DataSource   = items;
     cmb_sensorType.DataSource  = ChartOperate.get_SensorSource();
 }