Esempio n. 1
0
        private void DeviceManagerOnOnKeyboardChangedEvent(object sender, KeyboardChangedEventArgs e)
        {
            _deviceManager.OnKeyboardChangedEvent -= DeviceManagerOnOnKeyboardChangedEvent;
            _logger.Debug("Resuming effect change");

            var effect = _waitEffect;
            _waitEffect = null;
            var loopManager = _waitLoopManager;
            _waitLoopManager = null;

            ChangeEffect(effect, loopManager);
        }
Esempio n. 2
0
 private void DeviceManagerOnOnKeyboardChangedEvent(object sender, KeyboardChangedEventArgs e)
 {
     NotifyOfPropertyChange(() => KeyboardImage);
 }
Esempio n. 3
0
 protected virtual void RaiseKeyboardChangedEvent(KeyboardChangedEventArgs e)
 {
     // I do this in all to avoid a possible race condition
     // https://msdn.microsoft.com/en-us/library/w369ty8x.aspx
     var handler = OnKeyboardChangedEvent;
     handler?.Invoke(this, e);
 }
 /// <summary>
 ///     Handles chaning the active keyboard, updating the preview image and profiles collection
 /// </summary>
 private void DeviceManagerOnOnKeyboardChangedEvent(object sender, KeyboardChangedEventArgs e)
 {
     NotifyOfPropertyChange(() => PreviewSettings);
     LoadProfiles();
 }