/// <summary> /// 消息通知事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void NotificationEventHandler(object sender, MessageNotification.NotificationEventArgs e) { if (e.Code == MessageNotification.NotificationInfo.ReadDY3000DYData) { ShowResult(curDY6600DY.DataReadTable, false); } }
protected void NotificationEventHandler(object sender, MessageNotification.NotificationEventArgs e) { DataView vie = curLZ4000T.DataReadTable.DefaultView; //vie.RowFilter = "检测时间 > #" + dtStart.Value.Date + "# and 检测时间 < #" + dtEnd.Value + "#"; DataTable dt = vie.ToTable(); ShowResult(dt, true); }
/// <summary> /// 消息通知事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void NotificationEventHandler(object sender, MessageNotification.NotificationEventArgs e) { CheckForIllegalCrossThreadCalls = false; if (e.Code.ToString() == "ReadTY16") { if (e.Message == "272") { txtlink.Text = "已创建连接"; } else if (e.Message == "JX") { ty16.SendToInstrument("24"); Global.SendToTYData = "24"; } else if (e.Message == "ReadOver") { ShowData(); Global.SendToTYData = ""; } } }