Skip to content

Commit 417dc09

Browse files
committed
update form settings.
1 parent 886c046 commit 417dc09

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

acnhpoker/Form1.Designer.cs

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

acnhpoker/Form1.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private DataTable loadItemCSV(string filePath)
5151

5252
private void connectBtn_Click(object sender, EventArgs e)
5353
{
54-
54+
5555

5656
string ipPattern = @"\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b";
5757

@@ -267,7 +267,11 @@ private void updateInventory()
267267
btn.Text = "";
268268

269269
if (itemID == "FFFE")
270+
{
271+
btn.Image = null;
272+
btn.Text = "";
270273
continue;
274+
}
271275

272276
string itemPath = getImagePathFromID(itemID);
273277

@@ -532,8 +536,6 @@ private void deleteItemBtn_Click(object sender, EventArgs e)
532536
int slotId = int.Parse(owner.SourceControl.Tag.ToString());
533537
utilities.DeleteSlot(s, slotId);
534538

535-
536-
537539
var btnParent = (Button)owner.SourceControl;
538540
btnParent.Image = null;
539541
btnParent.Text = "";
@@ -610,9 +612,7 @@ private void spawnAllBtn_Click(object sender, EventArgs e)
610612

611613
private void refreshBtn_Click(object sender, EventArgs e)
612614
{
613-
614615
updateInventory();
615-
616616
}
617617
}
618618
}

0 commit comments

Comments
 (0)