Skip to content

Commit

Permalink
yes (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
zrodevkaan committed Dec 22, 2023
1 parent 740b1fd commit e6136a6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Easy Minecraft Modpacks/MainUI.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions Easy Minecraft Modpacks/MainUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,21 @@ private void MainUI_FormClosing(object sender, FormClosingEventArgs e)
}
}
}

private void dataGridView1_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
{
UpdateRow(1);
}

private void dataGridView1_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
{
UpdateRow(-1);
}

private void UpdateRow(int stuff)
{
label2.Text = (int.Parse(label2.Text) + stuff).ToString();
}
}

public static class Extensions
Expand Down

0 comments on commit e6136a6

Please sign in to comment.