diff options
author | sr55 <[email protected]> | 2011-08-17 14:05:33 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-08-17 14:05:33 +0000 |
commit | ebc5352895fbb61f31d7e6f4b48718e5f9be2a0e (patch) | |
tree | b6425004a46d2aeff48a43df1a8b51285a2b74d0 /win/CS/ToolWindows | |
parent | 1bd57899117e7b796d95cade71520dc87984a197 (diff) |
WinGui: Finish migrating the settings over to the new user setting service.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4183 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/ToolWindows')
-rw-r--r-- | win/CS/ToolWindows/BatchAdd.cs | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/win/CS/ToolWindows/BatchAdd.cs b/win/CS/ToolWindows/BatchAdd.cs index 08bf62092..fbb864e70 100644 --- a/win/CS/ToolWindows/BatchAdd.cs +++ b/win/CS/ToolWindows/BatchAdd.cs @@ -8,18 +8,29 @@ namespace Handbrake.ToolWindows using System;
using System.Windows.Forms;
+ using HandBrake.ApplicationServices;
+ using HandBrake.ApplicationServices.Services.Interfaces;
+
/// <summary>
/// Title Specific Scan
/// </summary>
public partial class BatchAdd : Form
{
+ /// <summary>
+ /// The User Setting Service.
+ /// </summary>
+ private readonly IUserSettingService UserSettingService = ServiceManager.UserSettingService;
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="BatchAdd"/> class.
+ /// </summary>
public BatchAdd()
{
InitializeComponent();
// Get the Default values for batch encoding.
- this.minDuration.Text = Properties.Settings.Default.batchMinDuration.ToString();
- this.maxDuration.Text = Properties.Settings.Default.batchMaxDuration.ToString();
+ this.minDuration.Text = this.UserSettingService.GetUserSetting<int>(UserSettingConstants.BatchMinDuration).ToString();
+ this.maxDuration.Text = this.UserSettingService.GetUserSetting<int>(UserSettingConstants.BatchMaxDuration).ToString();
}
/// <summary>
|