From 5cc2fbbca69eaac36d85d63b09cc3af39cee2cf2 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 30 Oct 2016 20:18:45 +0000 Subject: WinGui: Fix a large number of stylecop warnings. --- win/CS/HandBrakeWPF/Controls/SplitButton/SplitMenuButton.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'win/CS/HandBrakeWPF/Controls') 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 /// protected override void OnKeyDown(KeyEventArgs e) { - if (null == e) + if (e == null) { throw new ArgumentNullException("e"); } @@ -194,7 +194,7 @@ namespace HandBrakeWPF.Controls.SplitButton /// 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; -- cgit v1.2.3