private void UpdateDeviceStatus(LeapDeviceState status) { lock (thisLock) { //fires the event only in the case of an event handler being present if (OnDeviceStatusUpdate == null) { return; } LeapListenerArgs args = new LeapListenerArgs(status); OnDeviceStatusUpdate(this, args); } }
public LeapListenerArgs(LeapDeviceState status) { this.devicestatus = status; }
private void UpdateDeviceStatus(LeapDeviceState status) { lock (thisLock) { //fires the event only in the case of an event handler being present if (OnDeviceStatusUpdate == null) return; LeapListenerArgs args = new LeapListenerArgs(status); OnDeviceStatusUpdate(this, args); } }