private void dropDevices_SelectionChanged(object sender, SelectionChangedEventArgs e) { checkKeyEffect.IsChecked = false; SDK.EnableKeyInterrupt(checkKeyEffect.IsChecked ?? false, Data.Device); SDK.SetKeyCallBack(checkKeyEffect.IsChecked ?? false, Data.Device); Data.Device = (Devices)dropDevices.SelectedIndex; switch (Data.Device) { case Devices.DEV_MMouse_L: case Devices.DEV_MMouse_S: case Devices.DEV_MM520: case Devices.DEV_MM530: Data.KeyboardLayout = null; btnGetLayout.IsEnabled = false; break; default: btnGetLayout.IsEnabled = true; break; } }
private void checkKeyEffect_Checked(object sender, RoutedEventArgs e) { SDK.EnableKeyInterrupt(checkKeyEffect.IsChecked ?? false, Data.Device); SDK.SetKeyCallBack(checkKeyEffect.IsChecked ?? false, Data.Device); }