public DetectionSet(SerialPortClient serialPortClient, double temperature, double temppressure, string tempCode, string tempTong) { this._serialPortClient = serialPortClient; this._temperature = temperature; this._temppressure = temppressure; this._tempCode = tempCode; this._tempTong = tempTong; InitializeComponent(); Init(); }
public CommucationFacade(ICommPresenter presenter) { _presenter = presenter; _myTcpClient = new BitkyTcpClient(this); _myPortClient = new SerialPortClient(this); _controlFrameBuilder = new ControlFrameBuilder(); _frameProvider = new FrameProvider(); //子帧收集计时器 _timerFrameCollect = new Timer(PresetInfo.FrameReceiveTimeout) { AutoReset = false }; _timerFrameCollect.Elapsed += FrameCollect; }
public SensorSet(SerialPortClient serialPortLink) { InitializeComponent(); CreateViewItem(); _serialPortClient = serialPortLink; }
public PIDManager(SerialPortClient serialPortClient) { InitializeComponent(); this._serialPortClient = serialPortClient; Init(); }