public CoinCharge(string port, ChargeMoneyType chargeType, bool enabletimeout) { try { this.serial = new SerialPort(port, 9600, Parity.None, 8, StopBits.One); this.chargeType = chargeType; this.enabletimeout = enabletimeout; } catch (Exception ex) { Log.Out("打开找零设备异常->" + ex.Message); } }
public CoinCharge(string port, ChargeMoneyType chargeType) { this.sp = new SerialPort(port, 9600, Parity.None, 8, StopBits.One); this.chargeType = chargeType; }