public Main() { _mb_server = new MBServer(); _cms_server = new CMS(_mb_server); _handler = new MBMsgHandler(_cms_server); InitializeComponent(); }
public CMS(MBServer _mbserver) { _config = new CMSConfig(); this._mbserver = _mbserver; //Modbus服务. int dueTime = 2000; // Don't start. this._ccsTimer = new System.Threading.Timer(new TimerCallback(OnTimerCallback), null, dueTime, 1000); this.IBP = OnOff.UNKNOWN; this.FAS = OnOff.UNKNOWN; }
public ReceiveThread(MBServer server, MBConnect client) { this._client = client; this._server = server; }