public void DataReceived(Int64 value) { LfEventArgs e = new LfEventArgs(); e.value = value; if (LfDataReceived != null) LfDataReceived(this, e); }
private void eventComPort1_LfDataReceived(object sender, LfEventArgs e) { value = e.value.ToString(); this.Invoke(new EventHandler(UpdateData)); }