private void OnDataTransmitted(object sender, PortMessageEventArgs args) { try { } catch { } }
private void OnDataReceived(object sender, PortMessageEventArgs args) { try { TextBox1.AppendText("/r/n"); TextBox1.AppendText(">" + args.Message + "/r/n" + ">"); } catch { } }
private void port_DataReceived(object sender, PortMessageEventArgs args) { qf4net.QF.Instance.Publish(new PortEvent(QFSignal.PortResponse, Name, args.Message)); }
private void port_DataTransmitted(object sender, PortMessageEventArgs args) { qf4net.QF.Instance.Publish(new PortEvent(QFSignal.PortTransmitted, Name, args.Message)); }
private static void PortDataReceived(object sender, PortMessageEventArgs args) { Debug.Print("<Event=TestManager.PortDataReceived,\tPort=" + args.Name + ",\tMessage='" + args.Message + "'>"); }