Exemplo n.º 1
0
        private void tmrClock_Tick(object sender, EventArgs e)
        {
            if (SystemPub.ADRcp.CommMode == ADSDK.Device.CommMode.ACTIVE)
            {
                if (btnStart.Visible)
                {
                    btnStart.Visible = false;
                }
            }
            else
            {
                if (!btnStart.Visible)
                {
                    btnStart.Visible = true;
                }
            }

            if (IsStart)
            {
                if (IniSettings.Communication == CommType.USB)
                {
                    PassiveCommand.Identify6C(SystemPub.ADRcp);
                    //if (!SystemPub.ADRcp.SendBytePkt(PassiveRcp.Identify6C(SystemPub.ADRcp.Address))) { }
                }
                else
                {
                    PassiveCommand.Identify6CMult(SystemPub.ADRcp);
                    //if (!SystemPub.ADRcp.SendBytePkt(PassiveRcp.Identify6CMult(SystemPub.ADRcp.Address))) { }
                }
            }
        }
Exemplo n.º 2
0
        private void btnIdentify_Click(object sender, EventArgs e)
        {
            btnIdentify.Enabled = false;
            utxtCard.Value      = "";
            Application.DoEvents();
            PassiveCommand.Identify6C(SystemPub.ADRcp);
            //if (!SystemPub.ADRcp.SendBytePkt(PassiveRcp.Identify6C(SystemPub.ADRcp.Address))) { }

            btnIdentify.Enabled = true;
        }
Exemplo n.º 3
0
 private void dispatcherTimer_Tick(object sender, EventArgs e)
 {
     if (IsStart & !m_bStopComm)
     {
         DoEvents();
         //CardID.Text = "";
         //Application.DoEvents();
         PassiveCommand.Identify6C(SystemPub.ADRcp);
         //PassiveCommand.Identify6CMult(SystemPub.ADRcp);
     }
 }