Style fixes

This commit is contained in:
Kurt 2018-12-01 16:33:40 -08:00
parent 00d367b1b0
commit c52e43dce1
3 changed files with 5 additions and 2 deletions

View File

@ -36,8 +36,11 @@ public T[] LoadAll()
if (Cached)
return Cache;
for (int i = 0; i < Length; i++)
{
// ReSharper disable once AssignmentIsFullyDiscarded
_ = this[i]; // force load cache
}
Cached = true;
return Cache;
}

View File

@ -71,7 +71,7 @@ private void InitializeComponent()
this.dgv.ShowRowErrors = false;
this.dgv.Size = new System.Drawing.Size(300, 267);
this.dgv.TabIndex = 2;
this.dgv.CurrentCellDirtyStateChanged += new System.EventHandler(this.dgv_CurrentCellDirtyStateChanged);
this.dgv.CurrentCellDirtyStateChanged += new System.EventHandler(this.CurrentCellDirtyStateChanged);
//
// NUD_Min
//

View File

@ -136,7 +136,7 @@ private void SaveRow(int row, EncounterSlot s)
s.Probability = prob;
}
private void dgv_CurrentCellDirtyStateChanged(object sender, EventArgs e)
private void CurrentCellDirtyStateChanged(object sender, EventArgs e)
{
if (dgv.IsCurrentCellDirty)
dgv.CommitEdit(DataGridViewDataErrorContexts.Commit);