diff options
author | sr55 <[email protected]> | 2017-02-11 20:37:33 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2017-02-11 20:37:33 +0000 |
commit | 9ce3910fd193628e754abf4939c3758f1e57e100 (patch) | |
tree | bb7e367be99a36e85aa2c4beb1f45c243ae43c75 /win/CS/HandBrakeWPF/Converters | |
parent | a1455ea947b0f85665228f23d2f94f66bdad2cdd (diff) |
WinGui: Fix a number of stylecop warnings.
Diffstat (limited to 'win/CS/HandBrakeWPF/Converters')
11 files changed, 15 insertions, 25 deletions
diff --git a/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs b/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs index b40f61071..7f70288ce 100644 --- a/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs @@ -118,7 +118,7 @@ namespace HandBrakeWPF.Converters.Audio string name = value as string;
if (!string.IsNullOrEmpty(name))
{
- return new object[] { EnumHelper<AudioEncoder>.GetValue(name)};
+ return new object[] { EnumHelper<AudioEncoder>.GetValue(name) };
}
return null;
diff --git a/win/CS/HandBrakeWPF/Converters/Audio/AudioMixdownConverter.cs b/win/CS/HandBrakeWPF/Converters/Audio/AudioMixdownConverter.cs index e1a371743..0ef315fba 100644 --- a/win/CS/HandBrakeWPF/Converters/Audio/AudioMixdownConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/Audio/AudioMixdownConverter.cs @@ -9,10 +9,9 @@ namespace HandBrakeWPF.Converters.Audio { + using System; using System.Globalization; using System.Windows.Data; - using System; - using HandBrake.ApplicationServices.Interop; using HandBrake.ApplicationServices.Interop.Model.Encoding; diff --git a/win/CS/HandBrakeWPF/Converters/Audio/AudioMixdownListConverter.cs b/win/CS/HandBrakeWPF/Converters/Audio/AudioMixdownListConverter.cs index 432fdaaf7..df108d961 100644 --- a/win/CS/HandBrakeWPF/Converters/Audio/AudioMixdownListConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/Audio/AudioMixdownListConverter.cs @@ -9,14 +9,12 @@ namespace HandBrakeWPF.Converters.Audio { - using System.Globalization; - using System.Windows.Data; using System; using System.ComponentModel; - + using System.Globalization; + using System.Windows.Data; using HandBrake.ApplicationServices.Interop; using HandBrake.ApplicationServices.Interop.Model.Encoding; - using HandBrakeWPF.Services.Encode.Model.Models; using HandBrakeWPF.Utilities; diff --git a/win/CS/HandBrakeWPF/Converters/BooleanConverter.cs b/win/CS/HandBrakeWPF/Converters/BooleanConverter.cs index a01b3bf67..5273a3210 100644 --- a/win/CS/HandBrakeWPF/Converters/BooleanConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/BooleanConverter.cs @@ -9,9 +9,9 @@ namespace HandBrakeWPF.Converters
{
+ using System;
using System.Globalization;
using System.Windows.Data;
- using System;
/// <summary>
/// Boolean to Visibility Converter
@@ -41,7 +41,7 @@ namespace HandBrakeWPF.Converters // Paramater is a boolean which inverts the output.
var param = System.Convert.ToBoolean(parameter, CultureInfo.InvariantCulture);
- if (value is Boolean)
+ if (value is bool)
{
return param ? !(bool)value : value;
}
diff --git a/win/CS/HandBrakeWPF/Converters/BooleanToHiddenVisibilityConverter.cs b/win/CS/HandBrakeWPF/Converters/BooleanToHiddenVisibilityConverter.cs index c6a66e1f6..d60ab33c3 100644 --- a/win/CS/HandBrakeWPF/Converters/BooleanToHiddenVisibilityConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/BooleanToHiddenVisibilityConverter.cs @@ -9,10 +9,10 @@ namespace HandBrakeWPF.Converters
{
+ using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;
- using System;
/// <summary>
/// Boolean to Visibility Converter (Hidden, not Collasped)
@@ -47,7 +47,7 @@ namespace HandBrakeWPF.Converters return Visibility.Hidden;
}
- if (value is Boolean)
+ if (value is bool)
{
if (param)
{
diff --git a/win/CS/HandBrakeWPF/Converters/BooleanToVisibilityConverter.cs b/win/CS/HandBrakeWPF/Converters/BooleanToVisibilityConverter.cs index 31da7ed74..6c9d7fd12 100644 --- a/win/CS/HandBrakeWPF/Converters/BooleanToVisibilityConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/BooleanToVisibilityConverter.cs @@ -9,10 +9,10 @@ namespace HandBrakeWPF.Converters
{
+ using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;
- using System;
/// <summary>
/// Boolean to Visibility Converter
@@ -47,7 +47,7 @@ namespace HandBrakeWPF.Converters return Visibility.Collapsed;
}
- if (value is Boolean)
+ if (value is bool)
{
if (param)
{
diff --git a/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs b/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs index b803e1126..91c30311a 100644 --- a/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs @@ -9,17 +9,14 @@ namespace HandBrakeWPF.Converters
{
+ using System;
using System.Collections.Generic;
using System.Globalization;
using System.Windows.Data;
- using System;
-
- using HandBrake.ApplicationServices.Model;
using HandBrake.ApplicationServices.Interop.Model.Encoding;
-
+ using HandBrake.ApplicationServices.Model;
using HandBrakeWPF.Services.Queue.Model;
using HandBrakeWPF.Utilities;
-
using OutputFormat = HandBrakeWPF.Services.Encode.Model.Models.OutputFormat;
using PresetPictureSettingsMode = HandBrakeWPF.Model.Picture.PresetPictureSettingsMode;
diff --git a/win/CS/HandBrakeWPF/Converters/PresetsMenuConverter.cs b/win/CS/HandBrakeWPF/Converters/PresetsMenuConverter.cs index 62012be3d..098d9e952 100644 --- a/win/CS/HandBrakeWPF/Converters/PresetsMenuConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/PresetsMenuConverter.cs @@ -45,7 +45,7 @@ namespace HandBrakeWPF.Converters { if (groupedMenu.ContainsKey(item.Category)) { - MenuItem newMeuItem = new MenuItem { Header = item.Name, Tag = item, Command = new PresetMenuSelectCommand(item)}; + MenuItem newMeuItem = new MenuItem { Header = item.Name, Tag = item, Command = new PresetMenuSelectCommand(item) }; if (item.IsDefault) { newMeuItem.FontStyle = FontStyles.Italic; diff --git a/win/CS/HandBrakeWPF/Converters/Queue/PictureSettingsDescConveter.cs b/win/CS/HandBrakeWPF/Converters/Queue/PictureSettingsDescConveter.cs index 9af228b0e..7b7cbc220 100644 --- a/win/CS/HandBrakeWPF/Converters/Queue/PictureSettingsDescConveter.cs +++ b/win/CS/HandBrakeWPF/Converters/Queue/PictureSettingsDescConveter.cs @@ -9,12 +9,10 @@ namespace HandBrakeWPF.Converters.Queue { + using System; using System.Globalization; using System.Windows.Data; - using System; - using HandBrake.ApplicationServices.Interop.Model.Encoding; - using HandBrakeWPF.Services.Encode.Model; /// <summary> diff --git a/win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs b/win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs index 16559f8d0..d0e7cf556 100644 --- a/win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs @@ -16,7 +16,6 @@ namespace HandBrakeWPF.Converters.Video using System.Windows.Data;
using HandBrake.ApplicationServices.Interop;
- using HandBrake.ApplicationServices.Utilities;
using HandBrake.ApplicationServices.Interop.Model.Encoding;
using HandBrakeWPF.Utilities;
@@ -121,7 +120,7 @@ namespace HandBrakeWPF.Converters.Video string name = value as string;
if (!string.IsNullOrEmpty(name))
{
- return new object[] { EnumHelper<VideoEncoder>.GetValue(name)};
+ return new object[] { EnumHelper<VideoEncoder>.GetValue(name) };
}
return null;
diff --git a/win/CS/HandBrakeWPF/Converters/Video/VideoOptionsTooltipConverter.cs b/win/CS/HandBrakeWPF/Converters/Video/VideoOptionsTooltipConverter.cs index 01265f228..4a6c036c4 100644 --- a/win/CS/HandBrakeWPF/Converters/Video/VideoOptionsTooltipConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/Video/VideoOptionsTooltipConverter.cs @@ -13,7 +13,6 @@ namespace HandBrakeWPF.Converters.Video using System.Globalization;
using System.Windows.Data;
- using HandBrake.ApplicationServices.Utilities;
using HandBrake.ApplicationServices.Interop.Model.Encoding;
using HandBrakeWPF.Utilities;
|