diff options
author | sr55 <[email protected]> | 2013-02-12 20:37:59 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2013-02-12 20:37:59 +0000 |
commit | d72b432378105f191bc7bf6f756bb7a7533dc79a (patch) | |
tree | c76b29f4e7248918f0011e9340d51bb3f9a7bfed /win/CS/HandBrake.ApplicationServices/Services | |
parent | 3a5365f662fdd94d12733e9c7b1e09745697b532 (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')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Services/LibEncode.cs | 12 | ||||
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Services/LibScan.cs | 3 |
2 files changed, 9 insertions, 6 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;
diff --git a/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs b/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs index c3598d922..8dfb5ca12 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs @@ -20,10 +20,11 @@ namespace HandBrake.ApplicationServices.Services using HandBrake.ApplicationServices.Services.Interfaces;
using HandBrake.ApplicationServices.Utilities;
using HandBrake.Interop;
+ using HandBrake.Interop.EventArgs;
using HandBrake.Interop.Interfaces;
using AudioTrack = HandBrake.ApplicationServices.Parsing.Audio;
- using ScanProgressEventArgs = HandBrake.Interop.ScanProgressEventArgs;
+ using ScanProgressEventArgs = HandBrake.Interop.EventArgs.ScanProgressEventArgs;
using Size = System.Drawing.Size;
/// <summary>
|