public SerialPortClient(ICommucationFacade commucationFacade) { _commucationFacade = commucationFacade; _comm = new SerialPort { NewLine = "\n", RtsEnable = true }; //初始化串口 //根据实际情况吧。 _comm.DataReceived += ReceiveData; }
public CommPresenter(IViewCommStatus view) { _view = view; _commucationFacade = new CommucationFacade(this); _sqlPresenter = new SqlPresenter(this); _poleDetectPresenter = new PoleDetectPresenter(); //子帧收集计时器 _timerSendDelay = new Timer(PresetInfo.FrameSendDelay) { AutoReset = false }; _timerSendDelay.Elapsed += FrameSendDelay; }
public BitkyTcpClient(ICommucationFacade commucationFacade) { _commucationFacade = commucationFacade; }