/// <summary> /// 关闭读卡器串口 /// </summary> public void Close() { try { RWCard.rf_exit(_iPonter); tmTrick.Stop(); tmTrick.Close(); tmTrick.Dispose(); SetUIValue = null; } catch (Exception ex) { Log.WriteLog("IC卡读写控件-关闭串口", ex); } }