private void PostDebugReport(TabletReference tablet, IDeviceReport report)
 {
     if (report != null && tablet != null)
     {
         DeviceReport?.Invoke(this, new DebugReportData(tablet, report));
     }
 }
Esempio n. 2
0
 private void DebugReportHandler(object _, IDeviceReport report)
 {
     if (report != null)
     {
         DeviceReport?.Invoke(this, new RpcData(report));
     }
 }
Esempio n. 3
0
        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));
        }