From 99d6dc51d695cce18c27b65fb42196a57a4c3eb7 Mon Sep 17 00:00:00 2001 From: sr55 Date: Tue, 21 Jul 2015 20:32:11 +0000 Subject: WinGui: Replace Castle Windsor with Caliburn Micros built-in SimpleContainer IoC. We don't need anything as powerful as castle. Also, since the license appears to now be Apache License 2 which is not compatible with GPLv2, we can't upgrade this library any more. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7356 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs') diff --git a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs index b233dc449..2082dbb9e 100644 --- a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs @@ -43,11 +43,6 @@ namespace HandBrakeWPF.ViewModels /// private readonly IUserSettingService userSettingService; - /// - /// The Shell View Model - /// - private readonly IShellViewModel shellViewModel; - /// /// Backing field for the update service. /// @@ -309,12 +304,15 @@ namespace HandBrakeWPF.ViewModels /// /// The update Service. /// - public OptionsViewModel(IUserSettingService userSettingService, IShellViewModel shellViewModel, IUpdateService updateService) + /// + /// The about View Model. + /// + public OptionsViewModel(IUserSettingService userSettingService, IUpdateService updateService, IAboutViewModel aboutViewModel) { this.Title = "Options"; this.userSettingService = userSettingService; - this.shellViewModel = shellViewModel; this.updateService = updateService; + this.AboutViewModel = aboutViewModel; this.OnLoad(); this.SelectedTab = OptionsTab.General; @@ -1213,7 +1211,9 @@ namespace HandBrakeWPF.ViewModels public void Close() { this.Save(); - this.shellViewModel.DisplayWindow(ShellWindow.MainWindow); + + IShellViewModel shellViewModel = IoC.Get(); + shellViewModel.DisplayWindow(ShellWindow.MainWindow); } /// -- cgit v1.2.3