From 1bbc7702f0d57f826ae359dfd519e2c1400f84da Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 10 Oct 2012 20:13:19 +0000 Subject: WinGui: API Tidyup Part 2 of many. Growl Support. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5011 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 6 +++++- win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs | 10 +++++----- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'win/CS/HandBrakeWPF/ViewModels') diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index 081272a4d..e7c737b09 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -189,8 +189,12 @@ namespace HandBrakeWPF.ViewModels /// /// The drive Detect Service. /// + /// + /// The notification Service. + /// Leave in Constructor. + /// public MainViewModel(IUserSettingService userSettingService, IScanServiceWrapper scanService, IEncodeServiceWrapper encodeService, IPresetService presetService, - IErrorService errorService, IShellViewModel shellViewModel, IUpdateService updateService, IDriveDetectService driveDetectService) + IErrorService errorService, IShellViewModel shellViewModel, IUpdateService updateService, IDriveDetectService driveDetectService, INotificationService notificationService) { GeneralUtilities.SetInstanceId(); diff --git a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs index 343d6be7c..779e3e86a 100644 --- a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs @@ -781,7 +781,7 @@ namespace HandBrakeWPF.ViewModels set { this.preferredLanguages = value; - this.NotifyOfPropertyChange("preferredLanguages"); + this.NotifyOfPropertyChange("PreferredLanguages"); } } @@ -1499,8 +1499,8 @@ namespace HandBrakeWPF.ViewModels this.whenDoneOptions.Add("Quit HandBrake"); this.WhenDone = userSettingService.GetUserSetting("WhenCompleteAction"); - this.GrowlAfterEncode = userSettingService.GetUserSetting(ASUserSettingConstants.GrowlEncode); - this.GrowlAfterQueue = userSettingService.GetUserSetting(ASUserSettingConstants.GrowlQueue); + this.GrowlAfterEncode = userSettingService.GetUserSetting(UserSettingConstants.GrowlEncode); + this.GrowlAfterQueue = userSettingService.GetUserSetting(UserSettingConstants.GrowlQueue); this.SendFileAfterEncode = this.userSettingService.GetUserSetting(ASUserSettingConstants.SendFile); this.SendFileTo = Path.GetFileNameWithoutExtension(this.userSettingService.GetUserSetting(ASUserSettingConstants.SendFileTo)) ?? string.Empty; this.SendFileToPath = this.userSettingService.GetUserSetting(ASUserSettingConstants.SendFileTo) ?? string.Empty; @@ -1828,8 +1828,8 @@ namespace HandBrakeWPF.ViewModels this.userSettingService.SetUserSetting(UserSettingConstants.DaysBetweenUpdateCheck, this.CheckForUpdatesFrequency); this.userSettingService.SetUserSetting(UserSettingConstants.TooltipEnable, this.EnableGuiTooltips); this.userSettingService.SetUserSetting(ASUserSettingConstants.WhenCompleteAction, this.WhenDone); - this.userSettingService.SetUserSetting(ASUserSettingConstants.GrowlQueue, this.GrowlAfterQueue); - this.userSettingService.SetUserSetting(ASUserSettingConstants.GrowlEncode, this.GrowlAfterEncode); + this.userSettingService.SetUserSetting(UserSettingConstants.GrowlQueue, this.GrowlAfterQueue); + this.userSettingService.SetUserSetting(UserSettingConstants.GrowlEncode, this.GrowlAfterEncode); this.userSettingService.SetUserSetting(ASUserSettingConstants.SendFileTo, this.SendFileToPath); this.userSettingService.SetUserSetting(ASUserSettingConstants.SendFile, this.SendFileAfterEncode); this.userSettingService.SetUserSetting(ASUserSettingConstants.SendFileToArgs, this.Arguments); -- cgit v1.2.3