private void ReadCard() { ActionType = WRITETYPE.CARD; if (!SystemPub.ADRcp.SendBytePkt(PassiveRcp.Read6C(SystemPub.ADRcp.Address, 1, (byte)intAddr, (byte)intlen))) { } }
private void btnRead_Click(object sender, EventArgs e) { ActionType = WRITETYPE.DATA; btnRead.Enabled = false; utxtReadData.Value = ""; Application.DoEvents(); byte mem = Convert.ToByte(cmbReadBlock.SelectedIndex); byte state = Convert.ToByte(ltxtReadAddress.Text); byte len = Convert.ToByte(ltxtReadLength.Text); if (!SystemPub.ADRcp.SendBytePkt(PassiveRcp.Read6C(SystemPub.ADRcp.Address, mem, state, len))) { } btnRead.Enabled = true; }