private void OnLCDCMsgOK(object sender, EventArgs e) { if (OnLCDCMsgOKHandler != null) { OnLCDCMsgOKHandler.Invoke(this, e); } }
private void OnLCDCMsgOK(object sender, EventArgs e) { Debug.WriteLine("Drawer IP=" + this.DeviceIP + ", Event=" + "OnLCDCMsgOK"); if (OnLCDCMsgOKHandler != null) { OnLCDCMsgOKHandler.Invoke(this, e); } }
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); } }