private void PostDebugReport(TabletReference tablet, IDeviceReport report) { if (report != null && tablet != null) { DeviceReport?.Invoke(this, new DebugReportData(tablet, report)); } }
private void DebugReportHandler(object _, IDeviceReport report) { if (report != null) { DeviceReport?.Invoke(this, new RpcData(report)); } }
protected override void OnConnected() { base.OnConnected(); Instance.Message += (sender, e) => Application.Instance.AsyncInvoke(() => Message?.Invoke(sender, e)); Instance.DeviceReport += (sender, e) => Application.Instance.AsyncInvoke(() => DeviceReport?.Invoke(sender, e)); Instance.TabletsChanged += (sender, e) => Application.Instance.AsyncInvoke(() => TabletsChanged?.Invoke(sender, e)); }