protected void DoStopSucc() { _ESwitch = ESwitch.CLOSE; if (this._OnStopSucc != null) { this._OnStopSucc(); } }
private void OnComOpenFault(string strErrorMessage) { _ESwitch = ESwitch.CLOSE; if (this._OnStartFault != null) { this._OnStartFault(strErrorMessage); } }
protected void DoStartSucc() { _ESwitch = ESwitch.OPEN; if (this._OnStartSucc != null) { this._OnStartSucc(); } }
/// <summary> /// 私有构造函数 /// </summary> protected ConfigerBase() { this._ComManager = new ComManager(); this._ComManager.OnReceiveFrameData += new ComManager.ReceiveFrameDataHandler(OnReceiveFrameData); this._ComManager.OnErrorReceived += new ComManager.ErrorReceivedHandler(OnErrorReceived); this._ComManager.OnComOpenSucc += new ComManager.ComOpenSuccHandler(OnComOpenSucc); this._ComManager.OnComOpenFault += new ComManager.ComOpenFaultHandler(OnComOpenFault); this._ComManager.OnComCloseSucc += new ComManager.ComCloseSuccHandler(OnComCloseSucc); this._ComManager.OnComCloseFault += new ComManager.ComCloseFaultHandler(OnComCloseFault); this._ESwitch = ESwitch.CLOSE; }