protected override void HandleDataReceived(InputReport oInRep) { if (this.DataRecieved != null) { SpecifiedInputReport report = (SpecifiedInputReport)oInRep; this.DataRecieved(this, new DataRecievedEventArgs(report.Data)); } }
protected override void HandleDataReceived(InputReport oInRep) { // Fire the event handler if assigned if (DataRecieved != null) { SpecifiedInputReport report = (SpecifiedInputReport)oInRep; DataRecieved(this, new DataRecievedEventArgs(report.Data)); } }
protected override void HandleDataReceived(InputReport oInRep) { // Fire the event handler if assigned if (DataRecieved != null) { try { SpecifiedInputReport report = (SpecifiedInputReport)oInRep; string datastring = Utils.ToHexString(report.Data).Substring(2, 80); if (CheckonResult(datastring)) { DataRecieved(this, new DataRecievedEventArgs(Utils.HexToByte(datastring))); } } catch { } } }