summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2015-08-23 21:17:52 +0000
committersr55 <[email protected]>2015-08-23 21:17:52 +0000
commitc20a45fac6c5a4a3052f103e8d1070aec152b259 (patch)
tree106ca4b3f0a86771db32ce6f488e33ae2ef81470 /win/CS/HandBrakeWPF/Controls/SourceSelection.xaml.cs
parent5266fbb40c1989642de17b0481536d5a3360a4fa (diff)
WinGui: If the Queue Recovery doesn't return any results, show the "Source Selection" pane when the app starts up. Added quick access links to the preferences / About HandBrake Panes on this panel.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7411 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Controls/SourceSelection.xaml.cs')
-rw-r--r--win/CS/HandBrakeWPF/Controls/SourceSelection.xaml.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml.cs b/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml.cs
index 5d04af6f8..c487f5b98 100644
--- a/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml.cs
+++ b/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml.cs
@@ -10,6 +10,9 @@
namespace HandBrakeWPF.Controls
{
using System.Windows.Controls;
+ using System.Windows.Navigation;
+
+ using HandBrakeWPF.ViewModels;
/// <summary>
/// Interaction logic for SourceSelection.xaml
@@ -23,5 +26,17 @@ namespace HandBrakeWPF.Controls
{
this.InitializeComponent();
}
+
+ private void AboutHandBrake_OnRequestNavigate(object sender, RequestNavigateEventArgs e)
+ {
+ MainViewModel vm = this.DataContext as MainViewModel;
+ vm.OpenAboutApplication();
+ }
+
+ private void OpenOptions_OnRequestNavigate(object sender, RequestNavigateEventArgs e)
+ {
+ MainViewModel vm = this.DataContext as MainViewModel;
+ vm.OpenOptionsWindow();
+ }
}
}