Esempio n. 1
0
 protected void DoStopSucc()
 {
     _ESwitch = ESwitch.CLOSE;
     if (this._OnStopSucc != null)
     {
         this._OnStopSucc();
     }
 }
Esempio n. 2
0
 private void OnComOpenFault(string strErrorMessage)
 {
     _ESwitch = ESwitch.CLOSE;
     if (this._OnStartFault != null)
     {
         this._OnStartFault(strErrorMessage);
     }
 }
Esempio n. 3
0
 protected void DoStartSucc()
 {
     _ESwitch = ESwitch.OPEN;
     if (this._OnStartSucc != null)
     {
         this._OnStartSucc();
     }
 }
Esempio n. 4
0
        /// <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;
        }