private void checkedListBox1_SelectedIndexChanged(object sender, EventArgs e) { message.Clear(); for (int i = 0; i < checkedListBox1.Items.Count; i++) { if (checkedListBox1.GetItemChecked(i)) { message.Add(checkedListBox1.GetItemText(checkedListBox1.Items[i])); } } model.AddHistoryrun(message); agent.datagraph.runtimesage(); agent.record.RunMessage(); }