From b6a81f7e4fdde1eba56bde85e0e251cc6475f782 Mon Sep 17 00:00:00 2001 From: sr55 Date: Mon, 21 Mar 2016 20:11:09 +0000 Subject: [PATCH] WinGui: Some Cosmetic changes and links added to the GUI. --- .../HandBrakeWPF/Controls/SourceSelection.xaml | 4 ++++ .../Controls/SourceSelection.xaml.cs | 15 +++++++++++++++ win/CS/HandBrakeWPF/Views/AboutView.xaml | 13 +++++++++++-- win/CS/HandBrakeWPF/Views/AboutView.xaml.cs | 16 ++++++++++++++++ win/CS/HandBrakeWPF/Views/OptionsView.xaml | 4 ++-- 5 files changed, 48 insertions(+), 4 deletions(-) diff --git a/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml b/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml index b5726fb40..f73103b88 100644 --- a/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml +++ b/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml @@ -109,6 +109,10 @@ Preferences + + Help + + About HandBrake diff --git a/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml.cs b/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml.cs index cf8285292..5eab79b49 100644 --- a/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml.cs +++ b/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml.cs @@ -9,6 +9,7 @@ namespace HandBrakeWPF.Controls { + using System.Diagnostics; using System.Windows.Controls; using System.Windows.Navigation; @@ -56,5 +57,19 @@ namespace HandBrakeWPF.Controls MainViewModel vm = this.DataContext as MainViewModel; vm.OpenOptionsWindow(); } + + /// + /// The help_ on request navigate. + /// + /// + /// The sender. + /// + /// + /// The e. + /// + private void Help_OnRequestNavigate(object sender, RequestNavigateEventArgs e) + { + Process.Start("https://handbrake.fr/community.php"); + } } } diff --git a/win/CS/HandBrakeWPF/Views/AboutView.xaml b/win/CS/HandBrakeWPF/Views/AboutView.xaml index 0b0358251..6c640b459 100644 --- a/win/CS/HandBrakeWPF/Views/AboutView.xaml +++ b/win/CS/HandBrakeWPF/Views/AboutView.xaml @@ -26,6 +26,7 @@ + @@ -38,11 +39,19 @@ - + + + + https://handbrake.fr + + + + - + diff --git a/win/CS/HandBrakeWPF/Views/AboutView.xaml.cs b/win/CS/HandBrakeWPF/Views/AboutView.xaml.cs index 2be3fd009..e2dc357ba 100644 --- a/win/CS/HandBrakeWPF/Views/AboutView.xaml.cs +++ b/win/CS/HandBrakeWPF/Views/AboutView.xaml.cs @@ -9,7 +9,9 @@ namespace HandBrakeWPF.Views { + using System.Diagnostics; using System.Windows.Controls; + using System.Windows.Navigation; /// /// Interaction logic for AboutView.xaml @@ -23,5 +25,19 @@ namespace HandBrakeWPF.Views { InitializeComponent(); } + + /// + /// The handbrake website_ on request navigate. + /// + /// + /// The sender. + /// + /// + /// The e. + /// + private void HandbrakeWebsite_OnRequestNavigate(object sender, RequestNavigateEventArgs e) + { + Process.Start("https://handbrake.fr"); + } } } diff --git a/win/CS/HandBrakeWPF/Views/OptionsView.xaml b/win/CS/HandBrakeWPF/Views/OptionsView.xaml index 61942c7f5..777264526 100644 --- a/win/CS/HandBrakeWPF/Views/OptionsView.xaml +++ b/win/CS/HandBrakeWPF/Views/OptionsView.xaml @@ -104,11 +104,11 @@ - + - + -- 2.40.0