Exemple #1
0
        //显示打标状态
        private void btnStatus_Click(object sender, EventArgs e)
        {
            int nFlag = 0;
            int nRet  = CSharpInterface.HS_IsMarkEnd(ref nFlag);

            if (nRet == 0)
            {
                if (nFlag == 0)
                {
                    this.tbNote.Text = "Marking ......!";
                }
                else
                {
                    this.tbNote.Text = "打标结束.....!";
                    int nTime = 0;
                    CSharpInterface.HS_GetMarkTime(ref nTime);
                    this.tbNote.Text = "Mark finish...! Last time " + nTime.ToString() + " ms";
                    Preview();//预览
                }
            }
            else
            {
                ShowLastError();
            }
        }