private void button2_Click(object sender, EventArgs e) //停止按键 { short err = 0; uint start_pos; uint access_cnt; timer1.Enabled = false; err = D2KDASK.D2K_AI_AsyncClear((ushort)m_dev, out start_pos, out access_cnt); button2.Enabled = true; button1.Enabled = true; }