// -------------------------------------------------------------------------------------------------------------------- // // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // // Interaction logic for SourceSelection.xaml // // -------------------------------------------------------------------------------------------------------------------- namespace HandBrakeWPF.Controls { using System.Windows.Controls; using System.Windows.Navigation; using HandBrakeWPF.ViewModels; /// /// Interaction logic for SourceSelection.xaml /// public partial class SourceSelection : UserControl { /// /// Initializes a new instance of the class. /// public SourceSelection() { this.InitializeComponent(); } /// /// The about request navigate. /// /// /// The sender. /// /// /// The e. /// private void AboutHandBrake_OnRequestNavigate(object sender, RequestNavigateEventArgs e) { MainViewModel vm = this.DataContext as MainViewModel; vm.OpenAboutApplication(); } /// /// The open options request navigate. /// /// /// The sender. /// /// /// The e. /// private void OpenOptions_OnRequestNavigate(object sender, RequestNavigateEventArgs e) { MainViewModel vm = this.DataContext as MainViewModel; vm.OpenOptionsWindow(); } } }