Пример #1
0
        //IO控制
        private void btnIOControl_Click(object sender, EventArgs e)
        {
            IOControlForm iocontrolform = new IOControlForm();

            iocontrolform.ShowDialog();
            if (iocontrolform.ClickOkBtn == false)
            {
                return;
            }

            int nRet = CSharpInterface.HS_CheckTouch(this.Handle, iocontrolform.m_bTouchReport);

            if (nRet != 0)
            {
                ShowLastError();
            }
            else
            {
                this.tbNote.Text = "Check touch succeed!";
            }
        }