//check选择后,将触动SchemeModel,改变staCurrentList //统计数值----------------------------- private void listView1_ItemChecked(object sender, ItemCheckedEventArgs e) { //MessageBox.Show("调用"); List <Statsitic> list = new List <Statsitic>(); for (int i = 0; i < staWndListview.Items.Count; i++) { if (staWndListview.Items[i].Checked) { string type = staWndListview.Items[i].SubItems[0].Text; double value = Double.Parse(staWndListview.Items[i].SubItems[1].Text); list.Add(new Statsitic(type, value)); } } model.setStaCurrentList(list); //实时设置model的staCurrentList agent.informZedFormShowInformedStatistics(); //调用中介类,以期待中介类完成通知DataZedGraphicForm画出线条 }