summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Controls
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF/Controls')
-rw-r--r--win/CS/HandBrakeWPF/Controls/SplitButton/SplitMenuButton.cs6
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;