diff options
author | sr55 <[email protected]> | 2016-10-30 20:18:45 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2016-10-30 20:18:45 +0000 |
commit | 5cc2fbbca69eaac36d85d63b09cc3af39cee2cf2 (patch) | |
tree | b27c7cb02e6678fe85ef6f1f78b1ed4414572669 /win/CS/HandBrakeWPF/Controls | |
parent | 2c2947ac86ffbf4f5fa9111847ac31efd75c7d05 (diff) |
WinGui: Fix a large number of stylecop warnings.
Diffstat (limited to 'win/CS/HandBrakeWPF/Controls')
-rw-r--r-- | win/CS/HandBrakeWPF/Controls/SplitButton/SplitMenuButton.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win/CS/HandBrakeWPF/Controls/SplitButton/SplitMenuButton.cs b/win/CS/HandBrakeWPF/Controls/SplitButton/SplitMenuButton.cs index eb8b5df0a..ce7a57bb9 100644 --- a/win/CS/HandBrakeWPF/Controls/SplitButton/SplitMenuButton.cs +++ b/win/CS/HandBrakeWPF/Controls/SplitButton/SplitMenuButton.cs @@ -136,7 +136,7 @@ namespace HandBrakeWPF.Controls.SplitButton this.logicalChild = current;
current = LogicalTreeHelper.GetParent(current);
}
- while (null != current);
+ while (current != null);
this.contextMenu.IsOpen = false;
this.AddLogicalChild(this.logicalChild);
@@ -174,7 +174,7 @@ namespace HandBrakeWPF.Controls.SplitButton /// </param>
protected override void OnKeyDown(KeyEventArgs e)
{
- if (null == e)
+ if (e == null)
{
throw new ArgumentNullException("e");
}
@@ -194,7 +194,7 @@ namespace HandBrakeWPF.Controls.SplitButton /// </summary>
protected void OpenButtonMenu()
{
- if ((0 < this.ItemSource.Count) && (null != this.contextMenu))
+ if ((this.ItemSource.Count < 0) && (this.contextMenu != null))
{
this.contextMenu.HorizontalOffset = 0;
this.contextMenu.VerticalOffset = 0;
|