Ejemplo n.º 1
0
        private void SelectionChangedHandler(object aObj, List <ButtplugDeviceInfo> aDevices)
        {
            _devices = aDevices;
            if (_devices.Any(aDevice => aDevice.SupportsMessage(typeof(SingleMotorVibrateCmd))))
            {
                _translator.StartVibrateTimer();
                return;
            }

            _translator.StopVibrateTimer();
        }
        private void SelectionChangedHandler(object aObj, EventArgs aEvent)
        {
            var currentDevices = DeviceListBox.SelectedItems.Cast <Device>().ToList();

            if (currentDevices.Any(aDevice => aDevice.Messages.Contains("SingleMotorVibrateCmd")))
            {
                _translator.StartVibrateTimer();
                return;
            }

            _translator.StopVibrateTimer();
        }