summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Controls
diff options
context:
space:
mode:
authorsr55 <[email protected]>2017-02-11 20:37:33 +0000
committersr55 <[email protected]>2017-02-11 20:37:33 +0000
commit9ce3910fd193628e754abf4939c3758f1e57e100 (patch)
treebb7e367be99a36e85aa2c4beb1f45c243ae43c75 /win/CS/HandBrakeWPF/Controls
parenta1455ea947b0f85665228f23d2f94f66bdad2cdd (diff)
WinGui: Fix a number of stylecop warnings.
Diffstat (limited to 'win/CS/HandBrakeWPF/Controls')
-rw-r--r--win/CS/HandBrakeWPF/Controls/Loading.xaml.cs2
-rw-r--r--win/CS/HandBrakeWPF/Controls/SplitButton/SplitMenuButton.cs4
-rw-r--r--win/CS/HandBrakeWPF/Controls/StatusPanel.xaml.cs4
3 files changed, 5 insertions, 5 deletions
diff --git a/win/CS/HandBrakeWPF/Controls/Loading.xaml.cs b/win/CS/HandBrakeWPF/Controls/Loading.xaml.cs
index 102788492..5f1a83533 100644
--- a/win/CS/HandBrakeWPF/Controls/Loading.xaml.cs
+++ b/win/CS/HandBrakeWPF/Controls/Loading.xaml.cs
@@ -9,10 +9,10 @@
namespace HandBrakeWPF.Controls
{
- using System.Windows.Threading;
using System;
using System.Windows;
using System.Windows.Controls;
+ using System.Windows.Threading;
/// <summary>
/// Interaction logic for Loading.xaml
diff --git a/win/CS/HandBrakeWPF/Controls/SplitButton/SplitMenuButton.cs b/win/CS/HandBrakeWPF/Controls/SplitButton/SplitMenuButton.cs
index 5003068d1..adf17eb46 100644
--- a/win/CS/HandBrakeWPF/Controls/SplitButton/SplitMenuButton.cs
+++ b/win/CS/HandBrakeWPF/Controls/SplitButton/SplitMenuButton.cs
@@ -179,7 +179,7 @@ namespace HandBrakeWPF.Controls.SplitButton
throw new ArgumentNullException("e");
}
- if (Key.Down == e.Key || Key.Up == e.Key)
+ if (e.Key == Key.Down || e.Key == Key.Up)
{
this.Dispatcher.BeginInvoke((Action)this.OpenButtonMenu);
}
@@ -286,7 +286,7 @@ namespace HandBrakeWPF.Controls.SplitButton
this.contextMenu.HorizontalOffset = desiredOffset.X - currentOffset.X;
this.contextMenu.VerticalOffset = desiredOffset.Y - currentOffset.Y;
- if (FlowDirection.RightToLeft == this.FlowDirection)
+ if (this.FlowDirection == FlowDirection.RightToLeft)
{
this.contextMenu.HorizontalOffset *= -1;
}
diff --git a/win/CS/HandBrakeWPF/Controls/StatusPanel.xaml.cs b/win/CS/HandBrakeWPF/Controls/StatusPanel.xaml.cs
index 64e279517..02dabfe50 100644
--- a/win/CS/HandBrakeWPF/Controls/StatusPanel.xaml.cs
+++ b/win/CS/HandBrakeWPF/Controls/StatusPanel.xaml.cs
@@ -149,13 +149,13 @@ namespace HandBrakeWPF.Controls
}
/// <summary>
- ///
+ /// Gets a value indicating whether is action 2 button visible.
/// </summary>
public bool IsActionButton2Visibile
{
get
{
- return true; //SecondaryAction != null;
+ return true; // SecondaryAction != null;
}
}