Exemplo n.º 1
0
        public void DeviceAdded(ButtplugDeviceInfo aDev)
        {
            var devAdd = from dl in _devices
                         where dl.Info.Index == aDev.Index
                         select dl;

            if (devAdd.Any())
            {
                foreach (var dr in devAdd.ToList())
                {
                    dr.Connected = true;
                    _devices.UpdateList();
                }
            }
            else
            {
                _devices.Add(new DeviceListItem(aDev));
            }
        }
Exemplo n.º 2
0
 public DeviceListItem(ButtplugDeviceInfo aInfo)
 {
     Info      = aInfo;
     Connected = true;
 }