private void OkButton_Click(object sender, RoutedEventArgs e)
        {
            PreviewDialogConfirmedHandler(spokenText.Text.Trim(), SelectedVoiceType, SelectedVoice);
            AudioSettingsDialogWindow parentWindow = Window.GetWindow(this) as AudioSettingsDialogWindow;

            parentWindow.Close();
        }
        private void WatsonVoiceLogInButton_Click(object sender, RoutedEventArgs e)
        {
            AudioSettingService.AudioPreviewPageHeight = Height;
            AudioSettingsDialogWindow parentWindow = Window.GetWindow(this) as AudioSettingsDialogWindow;

            parentWindow.WindowDisplayOption = AudioSettingsWindowDisplayOptions.GoToWatsonLoginPage;
        }
        private void VoicePreviewButton_Click(object sender, RoutedEventArgs e)
        {
            AzureAccountStorageService.LoadUserAccount();
            AudioSettingsDialogWindow dialog = new AudioSettingsDialogWindow(AudioSettingsPage.AudioPreviewPage);
            AudioPreviewPage          page   = dialog.MainPage as AudioPreviewPage;

            page.PreviewDialogConfirmedHandler = OnSettingsDialogConfirmed;
            ConfigureAudioPreviewSettings(page);
            dialog.Title = "Audio Preview Window";
            dialog.ShowThematicDialog();
        }
        private void OkButton_Click(object sender, RoutedEventArgs e)
        {
            DialogConfirmedHandler(SelectedVoiceType, SelectedVoice, previewCheckbox.IsChecked.GetValueOrDefault());
            if (IsDefaultVoiceChangedHandlerAssigned)
            {
                DefaultVoiceChangedHandler();
            }
            if (audioListView.IsVisible && !UpdateRankedAudioPreferences())
            {
                return;
            }
            AudioSettingStorageService.SaveAudioSettingPreference();
            AudioSettingsDialogWindow parentWindow = Window.GetWindow(this) as AudioSettingsDialogWindow;

            parentWindow.Close();
        }
Beispiel #5
0
        private void SwitchViewToPreviousPage()
        {
            AudioSettingsDialogWindow parentWindow = Window.GetWindow(this) as AudioSettingsDialogWindow;

            parentWindow.WindowDisplayOption = AudioSettingsWindowDisplayOptions.GoToMainPage;
        }
        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            AudioSettingsDialogWindow parentWindow = Window.GetWindow(this) as AudioSettingsDialogWindow;

            parentWindow.Close();
        }
        private void ChangeWatsonAccountButton_Click(object sender, RoutedEventArgs e)
        {
            AudioSettingsDialogWindow parentWindow = Window.GetWindow(this) as AudioSettingsDialogWindow;

            parentWindow.WindowDisplayOption = AudioSettingsWindowDisplayOptions.GoToWatsonLoginPage;
        }
        private void AzureVoiceBtn_Click(object sender, RoutedEventArgs e)
        {
            AudioSettingsDialogWindow parentWindow = Window.GetWindow(this) as AudioSettingsDialogWindow;

            parentWindow.WindowDisplayOption = AudioSettingsWindowDisplayOptions.GoToAzureLoginPage;
        }