Пример #1
0
 private void OnLCDCMsgOK(object sender, EventArgs e)
 {
     if (OnLCDCMsgOKHandler != null)
     {
         OnLCDCMsgOKHandler.Invoke(this, e);
     }
 }
Пример #2
0
 private void OnLCDCMsgOK(object sender, EventArgs e)
 {
     Debug.WriteLine("Drawer IP=" + this.DeviceIP + ", Event=" + "OnLCDCMsgOK");
     if (OnLCDCMsgOKHandler != null)
     {
         OnLCDCMsgOKHandler.Invoke(this, e);
     }
 }
Пример #3
0
        public void LCDCMsg(ReplyMessage reply)
        {
            ReplyResultCode replyResultCode = (ReplyResultCode)((int)(reply.Value));
            var             eventArgs       = new OnLCDCMsgEventArgs(replyResultCode);

            if (OnLCDCMsgHandler != null)
            {
                OnLCDCMsgHandler.Invoke(this, eventArgs);
            }
            if (OnLCDCMsgOKHandler != null && replyResultCode == ReplyResultCode.Set_Successfully)
            {
                OnLCDCMsgOKHandler.Invoke(this, EventArgs.Empty);
            }
            if (OnLCDCMsgFailedHandler != null && replyResultCode == ReplyResultCode.Failed)
            {
                OnLCDCMsgFailedHandler.Invoke(this, EventArgs.Empty);
            }
        }