Пример #1
0
        public bool TestHead()
        {
            bool          rtn = false;
            StringBuilder buf = new StringBuilder(1024);

            AgentDll.btn_check_head_band(buf);
            string txt = buf.ToString();

            if (txt == "HEAD_OK")
            {
                rtn = true;
            }
            return(rtn);
        }
Пример #2
0
        private void button15_Click(object sender, EventArgs e)
        {
            bool          rtn = false;
            StringBuilder buf = new StringBuilder(1024);

            AgentDll.btn_check_head_band(buf);
            string txt = buf.ToString();

            if (txt == "HEAD_OK")
            {
                rtn = true;
            }
            if (rtn)
            {
                MessageBox.Show("头部绑带正常");
            }
            else
            {
                MessageBox.Show("头部绑带不正常");
            }
        }