summaryrefslogtreecommitdiffstats
path: root/win/CS/Controls/x264Panel.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-08-17 14:05:33 +0000
committersr55 <[email protected]>2011-08-17 14:05:33 +0000
commitebc5352895fbb61f31d7e6f4b48718e5f9be2a0e (patch)
treeb6425004a46d2aeff48a43df1a8b51285a2b74d0 /win/CS/Controls/x264Panel.cs
parent1bd57899117e7b796d95cade71520dc87984a197 (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/Controls/x264Panel.cs')
-rw-r--r--win/CS/Controls/x264Panel.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/win/CS/Controls/x264Panel.cs b/win/CS/Controls/x264Panel.cs
index 829e1cf5c..c7625d720 100644
--- a/win/CS/Controls/x264Panel.cs
+++ b/win/CS/Controls/x264Panel.cs
@@ -9,6 +9,9 @@ namespace Handbrake.Controls
using System.Globalization;
using System.Windows.Forms;
+ using HandBrake.ApplicationServices;
+ using HandBrake.ApplicationServices.Services.Interfaces;
+
/// <summary>
/// The x264 Panel
/// </summary>
@@ -19,6 +22,11 @@ namespace Handbrake.Controls
* at some point.
*/
+ /// <summary>
+ /// The User Setting Service.
+ /// </summary>
+ private readonly IUserSettingService UserSettingService = ServiceManager.UserSettingService;
+
private CultureInfo culture = CultureInfo.CreateSpecificCulture("en-US");
/// <summary>
@@ -29,7 +37,7 @@ namespace Handbrake.Controls
{
InitializeComponent();
- if (Properties.Settings.Default.tooltipEnable)
+ if (this.UserSettingService.GetUserSetting<bool>(UserSettingConstants.TooltipEnable))
ToolTip.Active = true;
Reset2Defaults();