use some C#7isms in InputRoll.cs
This commit is contained in:
parent
f47854e1d4
commit
358ad68357
|
@ -7,7 +7,6 @@ using System.Windows.Forms;
|
||||||
|
|
||||||
using BizHawk.Client.Common;
|
using BizHawk.Client.Common;
|
||||||
using BizHawk.Client.EmuHawk.CustomControls;
|
using BizHawk.Client.EmuHawk.CustomControls;
|
||||||
using BizHawk.Common;
|
|
||||||
|
|
||||||
namespace BizHawk.Client.EmuHawk
|
namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
|
@ -197,10 +196,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
[Category("Behavior")]
|
[Category("Behavior")]
|
||||||
public bool HorizontalOrientation
|
public bool HorizontalOrientation
|
||||||
{
|
{
|
||||||
get
|
get => _horizontalOrientation;
|
||||||
{
|
|
||||||
return _horizontalOrientation;
|
|
||||||
}
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (_horizontalOrientation != value)
|
if (_horizontalOrientation != value)
|
||||||
|
@ -250,11 +246,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
[Category("Behavior")]
|
[Category("Behavior")]
|
||||||
public int RowCount
|
public int RowCount
|
||||||
{
|
{
|
||||||
get
|
get => _rowCount;
|
||||||
{
|
|
||||||
return _rowCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
_rowCount = value;
|
_rowCount = value;
|
||||||
|
@ -332,8 +324,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
[Category("Behavior")]
|
[Category("Behavior")]
|
||||||
public int HoverInterval
|
public int HoverInterval
|
||||||
{
|
{
|
||||||
get { return _hoverTimer.Interval; }
|
get => _hoverTimer.Interval;
|
||||||
set { _hoverTimer.Interval = value; }
|
set => _hoverTimer.Interval = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -613,11 +605,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||||
public int MaxCharactersInHorizontal
|
public int MaxCharactersInHorizontal
|
||||||
{
|
{
|
||||||
get
|
get => _maxCharactersInHorizontal;
|
||||||
{
|
|
||||||
return _maxCharactersInHorizontal;
|
|
||||||
}
|
|
||||||
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
_maxCharactersInHorizontal = value;
|
_maxCharactersInHorizontal = value;
|
||||||
|
@ -743,11 +731,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||||
public int LastVisibleRow
|
public int LastVisibleRow
|
||||||
{
|
{
|
||||||
get
|
get => FirstVisibleRow + VisibleRows + CountLagFramesDisplay(VisibleRows);
|
||||||
{
|
|
||||||
return FirstVisibleRow + VisibleRows + CountLagFramesDisplay(VisibleRows);
|
|
||||||
}
|
|
||||||
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
int halfRow = 0;
|
int halfRow = 0;
|
||||||
|
|
Loading…
Reference in New Issue