示例#1
0
        Task OnDevicesCollectionChanged(HideezMiddleware.IPC.Messages.DevicesCollectionChangedMessage obj)
        {
            foreach (HideezMiddleware.IPC.DTO.DeviceDTO device in obj.Devices)
            {
                if (device.CanLockPyProximity)
                {
                    ChangeIconState(false);
                    return(Task.CompletedTask);
                }
            }

            return(Task.CompletedTask);
        }
示例#2
0
 public Task DevicesCollectionChanged(HideezMiddleware.IPC.Messages.DevicesCollectionChangedMessage message)
 {
     _log.WriteLine($"Paired devices collection changed. Count: {message.Devices.Length}");
     SendMessage(new Messages.DevicesCollectionChangedMessage(message.Devices));
     return(Task.CompletedTask);
 }