From 358ad68357ed1c9c955c49e14d991abf3f059c97 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 16 Nov 2019 11:41:34 -0600 Subject: [PATCH] use some C#7isms in InputRoll.cs --- .../CustomControls/InputRoll/InputRoll.cs | 28 ++++--------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs b/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs index f313d39699..8586b5c51c 100644 --- a/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs +++ b/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs @@ -7,7 +7,6 @@ using System.Windows.Forms; using BizHawk.Client.Common; using BizHawk.Client.EmuHawk.CustomControls; -using BizHawk.Common; namespace BizHawk.Client.EmuHawk { @@ -197,10 +196,7 @@ namespace BizHawk.Client.EmuHawk [Category("Behavior")] public bool HorizontalOrientation { - get - { - return _horizontalOrientation; - } + get => _horizontalOrientation; set { if (_horizontalOrientation != value) @@ -250,11 +246,7 @@ namespace BizHawk.Client.EmuHawk [Category("Behavior")] public int RowCount { - get - { - return _rowCount; - } - + get => _rowCount; set { _rowCount = value; @@ -332,8 +324,8 @@ namespace BizHawk.Client.EmuHawk [Category("Behavior")] public int HoverInterval { - get { return _hoverTimer.Interval; } - set { _hoverTimer.Interval = value; } + get => _hoverTimer.Interval; + set => _hoverTimer.Interval = value; } #endregion @@ -613,11 +605,7 @@ namespace BizHawk.Client.EmuHawk [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public int MaxCharactersInHorizontal { - get - { - return _maxCharactersInHorizontal; - } - + get => _maxCharactersInHorizontal; set { _maxCharactersInHorizontal = value; @@ -743,11 +731,7 @@ namespace BizHawk.Client.EmuHawk [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public int LastVisibleRow { - get - { - return FirstVisibleRow + VisibleRows + CountLagFramesDisplay(VisibleRows); - } - + get => FirstVisibleRow + VisibleRows + CountLagFramesDisplay(VisibleRows); set { int halfRow = 0;