From a6fbb52b6c9f4b639101e6e4d37e670ca2840c84 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 3 Apr 2011 17:49:44 +0000 Subject: WinGui: - Move all user settings for the Services library into the services library. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3899 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/frmQueue.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'win/CS/frmQueue.cs') diff --git a/win/CS/frmQueue.cs b/win/CS/frmQueue.cs index c305e6b75..e5b2d68d7 100644 --- a/win/CS/frmQueue.cs +++ b/win/CS/frmQueue.cs @@ -14,6 +14,7 @@ namespace Handbrake using System.Windows.Forms; using Functions; + using HandBrake.ApplicationServices; using HandBrake.ApplicationServices.Functions; using HandBrake.ApplicationServices.Model; using HandBrake.ApplicationServices.Model.Encoding; @@ -43,6 +44,8 @@ namespace Handbrake /// private readonly frmMain mainWindow; + private readonly IUserSettingService userSettingService = new UserSettingService(); + /// /// Initializes a new instance of the class. /// @@ -67,7 +70,7 @@ namespace Handbrake queue.EncodeService.EncodeStarted += this.queue_EncodeStarted; queue.EncodeService.EncodeCompleted += this.queue_EncodeEnded; - drp_completeOption.Text = Properties.Settings.Default.CompletionOption; + drp_completeOption.Text = userSettingService.GetUserSettingString(UserSettingConstants.WhenCompleteAction); } /// @@ -705,9 +708,7 @@ namespace Handbrake /// private void CompleteOptionChanged(object sender, EventArgs e) { - Properties.Settings.Default.CompletionOption = drp_completeOption.Text; - HandBrake.ApplicationServices.Init.CompletionOption = drp_completeOption.Text; - Properties.Settings.Default.Save(); + userSettingService.SetUserSetting(UserSettingConstants.WhenCompleteAction, drp_completeOption.Text); } } } \ No newline at end of file -- cgit v1.2.3