private void OnRaiseOBDSensorData(object sender, OBDSensorDataEventArgs e) { EventHandler <OBDSensorDataEventArgs> handler = RaiseOBDSensorData; // Only execute if there are any subscribers if (handler != null) { handler(sender, e); } }
protected virtual void OnRaiseOBDSensorData(OBDSensorDataEventArgs eventArgs) { EventHandler <OBDSensorDataEventArgs> handler = RaiseOBDSensorData; // Only execute if there are any subscribers if (handler != null) { handler(this, eventArgs); } }
protected virtual void OnRaiseOBDSensorData(OBDSensorDataEventArgs eventArgs) { EventHandler<OBDSensorDataEventArgs> handler = RaiseOBDSensorData; // Only execute if there are any subscribers if (handler != null) { handler(this, eventArgs); } }
private void OnRaiseOBDSensorData(object sender, OBDSensorDataEventArgs e) { EventHandler<OBDSensorDataEventArgs> handler = RaiseOBDSensorData; // Only execute if there are any subscribers if (handler != null) { handler(sender, e); } }