private List samples = new List(); //样本数组,可从鼠标按下事件中添加样本//Clear按钮清屏 private void ClearBtn_Click(object sender, EventArgs e) { Invalidate(); //重绘窗口 samples.Clear(); //清除样本 }
.clear()