/// <summary> /// 添加96孔板孔位按钮 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button2_Click(object sender, EventArgs e) { if (robot1.HoleKeyPoint.Count < robot1.HoleKeyPointNmu - 1) { robot1.AddHoleKeyPoint(); DisplayListView(); } else { DisplayListView(); for (int k = 0; k < 8; k++) { for (int w = 0; w < 12; w++) { userControl11.Checks[k, w] = false; } } robot1.AddHoleKeyPoint(); MessageBox.Show("请选择需要加样的孔", "提示"); } }