summaryrefslogtreecommitdiffstats
path: root/win/CS/frmQueue.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-04-03 17:49:44 +0000
committersr55 <[email protected]>2011-04-03 17:49:44 +0000
commita6fbb52b6c9f4b639101e6e4d37e670ca2840c84 (patch)
tree5bf6b9a4d945365ba07dd07ba77fd05019d0e086 /win/CS/frmQueue.cs
parent80ebbf6f36a9084dd19e04e1cbfbd9ec93bfb6b6 (diff)
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
Diffstat (limited to 'win/CS/frmQueue.cs')
-rw-r--r--win/CS/frmQueue.cs9
1 files changed, 5 insertions, 4 deletions
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
/// </summary>
private readonly frmMain mainWindow;
+ private readonly IUserSettingService userSettingService = new UserSettingService();
+
/// <summary>
/// Initializes a new instance of the <see cref="frmQueue"/> class.
/// </summary>
@@ -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);
}
/// <summary>
@@ -705,9 +708,7 @@ namespace Handbrake
/// </param>
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