示例#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 (UserSettings.Communication == UserSettings.CommType.USB)
                {
                    if (!SystemPub.ADRcp.SendBytePkt(PassiveRcp.Identify6C(SystemPub.ADRcp.Address)))
                    {
                    }
                }
                else
                {
                    if (!SystemPub.ADRcp.SendBytePkt(PassiveRcp.Identify6CMult(SystemPub.ADRcp.Address)))
                    {
                    }
                }
            }
        }
示例#2
0
        private void btnIdentify_Click(object sender, EventArgs e)
        {
            btnIdentify.Enabled = false;
            utxtCard.Value      = "";
            Application.DoEvents();
            if (!SystemPub.ADRcp.SendBytePkt(PassiveRcp.Identify6C(SystemPub.ADRcp.Address)))
            {
            }

            btnIdentify.Enabled = true;
        }