summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Services/LibEncode.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2013-02-12 20:37:59 +0000
committersr55 <[email protected]>2013-02-12 20:37:59 +0000
commitd72b432378105f191bc7bf6f756bb7a7533dc79a (patch)
treec76b29f4e7248918f0011e9340d51bb3f9a7bfed /win/CS/HandBrake.ApplicationServices/Services/LibEncode.cs
parent3a5365f662fdd94d12733e9c7b1e09745697b532 (diff)
WinGui: A Stylecop cleanup pass on Interop Library. Note, moved the Eventargs into their own package.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5248 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services/LibEncode.cs')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/LibEncode.cs12
1 files changed, 7 insertions, 5 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/LibEncode.cs b/win/CS/HandBrake.ApplicationServices/Services/LibEncode.cs
index 320b96f1b..0d1998a59 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/LibEncode.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/LibEncode.cs
@@ -11,12 +11,14 @@ namespace HandBrake.ApplicationServices.Services
{
using System;
using System.Diagnostics;
+ using System.Globalization;
using HandBrake.ApplicationServices.Model;
using HandBrake.ApplicationServices.Services.Base;
using HandBrake.ApplicationServices.Services.Interfaces;
using HandBrake.ApplicationServices.Utilities;
using HandBrake.Interop;
+ using HandBrake.Interop.EventArgs;
using HandBrake.Interop.Interfaces;
using HandBrake.Interop.Model;
@@ -174,8 +176,8 @@ namespace HandBrake.ApplicationServices.Services
{
this.IsEncoding = false;
this.instance.StopEncode();
- }
- catch(Exception)
+ }
+ catch (Exception)
{
// Do Nothing.
}
@@ -239,7 +241,7 @@ namespace HandBrake.ApplicationServices.Services
/// <param name="e">
/// The Interop.EncodeProgressEventArgs.
/// </param>
- private void InstanceEncodeProgress(object sender, Interop.EncodeProgressEventArgs e)
+ private void InstanceEncodeProgress(object sender, Interop.EventArgs.EncodeProgressEventArgs e)
{
EncodeProgressEventArgs args = new EncodeProgressEventArgs
{
@@ -256,7 +258,7 @@ namespace HandBrake.ApplicationServices.Services
if (this.WindowsSeven.IsWindowsSeven)
{
int percent;
- int.TryParse(Math.Round(e.FractionComplete).ToString(), out percent);
+ int.TryParse(Math.Round(e.FractionComplete).ToString(CultureInfo.InvariantCulture), out percent);
this.WindowsSeven.SetTaskBarProgress(percent);
}
@@ -271,7 +273,7 @@ namespace HandBrake.ApplicationServices.Services
/// <param name="e">
/// The e.
/// </param>
- private void InstanceEncodeCompleted(object sender, Interop.EncodeCompletedEventArgs e)
+ private void InstanceEncodeCompleted(object sender, Interop.EventArgs.EncodeCompletedEventArgs e)
{
this.IsEncoding = false;