private void Click_Internal(object sender, RoutedEventArgs e)
        {
            var dialog = new HotkeyPromptWindow("Configure start/stop recording hotkey");

            var parentWindow = Window.GetWindow(this);

            dialog.Owner = parentWindow;

            if (dialog.ShowDialog() == true)
            {
                SettingValue = dialog.HotkeysAppSetting;
                this.hotkeyService.ResetAndReadHotkeysFromConfig();
            }
        }
Пример #2
0
        private void ConfigureHotkey_StartStopRecording_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new HotkeyPromptWindow("Configure start/stop recording hotkey");

            dialog.Owner = this;

            if (dialog.ShowDialog() == true)
            {
                SettingService.HotKey_StartStopRecording = dialog.HotkeysAppSetting;
                this.hotkeyService.ResetAndReadHotkeysFromConfig();
            }

            // since there are two buttons on top of each other
            e.Handled = true;
        }