private void Window_KeyDown_1(object sender, KeyEventArgs e) { if ((Keyboard.Modifiers == ModifierKeys.Control) && (e.Key == Key.E)) { ConfigDevice config = new ConfigDevice(); config.ShowDialog(); } }
private void BtnConfig_Click(object sender, RoutedEventArgs e) { ConfigDevice configDevice = new ConfigDevice(); configDevice.ShowDialog(); }