Beispiel #1
0
        //释放打标系统
        private void btnRelease_Click(object sender, EventArgs e)
        {
            CSharpInterface.HS_FreeStrokeList(m_listCustom);
            int nRet = CSharpInterface.HS_CloseMachine();

            if (0 == nRet)
            {
                tbNote.Text           = "Release ok!";
                tsslabCardStatus.Text = "Card Status: Not Init!!!";

                m_bInitOk = false;

                tsslabMarkRange.Text = "打标范围:";
                Refresh();
            }
            else
            {
                ShowLastError();
                tsslabCardStatus.Text = "Card Status: Init OK!!!";
            }
            UpdateView();
        }
Beispiel #2
0
 //关闭窗体时,关闭机器
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     CSharpInterface.HS_CloseMachine();
     CSharpInterface.HS_FreeStrokeList(m_listCustom);
 }