Пример #1
0
        private void DISABLE_ACCESSPEC()
        {
            MSG_DISABLE_ACCESSSPEC msg = new MSG_DISABLE_ACCESSSPEC();

            msg.AccessSpecID = 1001;

            MSG_DISABLE_ACCESSSPEC_RESPONSE rsp = reader.DISABLE_ACCESSSPEC(msg, out msg_err, 3000);

            if (rsp != null)
            {
                textBox2.Text = rsp.ToString();
            }
            else if (msg_err != null)
            {
                textBox2.Text = msg_err.ToString();
            }
            else
            {
                textBox2.Text = "Command time out!";
            }
        }
Пример #2
0
        private void DISABLE_ACCESSPEC()
        {
            MSG_DISABLE_ACCESSSPEC msg = new MSG_DISABLE_ACCESSSPEC();

            msg.AccessSpecID = 1001;

            MSG_DISABLE_ACCESSSPEC_RESPONSE rsp = client.DISABLE_ACCESSSPEC(msg, out msg_err, 3000);

            if (rsp != null)
            {
                //textBox2.Text = rsp.ToString() + "\n";
                WriteMessage(rsp.ToString(), "DISABLE_ACCESSPEC");
            }
            else if (msg_err != null)
            {
                readerMgr.AppendToDebugTextBox("DISABLE_ACCESSPEC " + msg_err.ToString() + "\n");
            }
            else
            {
                readerMgr.AppendToDebugTextBox("DISABLE_ACCESSPEC Command time out!" + "\n");
            }
        }