예제 #1
0
        private void OnDeviceCmdReturn(object sender, DeviceCmdEventArgs arg)
        {
            this.isReceiveEvent = true;
            IPC_SIMPLE_ANSWER isa = arg.isa;

            this.isaQueue.Enqueue(isa);
            this.isReceiveEvent = false;
        }
예제 #2
0
        private void OnDeviceCmdReturn(object sender, DeviceCmdEventArgs arg)
        {
            IPC_SIMPLE_ANSWER isa = arg.isa;

            if (isa == null)
            {
                return;
            }
            if ((byte)isa.cmd_id == 85 && !isa.is_cmd_failed_flag && isa.is_cmd_over_flag && isa.return_object != null)
            {
                this.label3.Text    = isa.return_object.ToString();
                this.comboBox1.Text = this.label3.Text;
            }
        }