/// <summary> /// this function will be called when tag identify fialed, /// before writing data to tag, need know which tag type, /// and get the epc data. /// </summary> /// <param name="ar"></param> private void TagIdentifyFailCallback(ActionResault ar) { if (ar == ActionResault.ReadTIDBankWhenWriteFail) { MessageBox.Show(UHFDeskMain.reader.ErrorCode); } }
private void GetFrequencyRegionCallback(ActionResault errorCode) { if (errorCode == ActionResault.GetFrequencyRegionFail) { MessageBox.Show(UHFDeskMain.reader.ErrorCode); } else { btnConnectRs232.Enabled = false; btnDisconnectRs232.Enabled = true; cmbComPort.Enabled = false; cmbBaudrate.Enabled = false; //设置按钮字体颜色 btnConnectRs232.ForeColor = Color.Black; btnDisconnectRs232.ForeColor = Color.Indigo; SetButtonBold(btnConnectRs232); SetButtonBold(btnDisconnectRs232); } }