Skip to content

Commit

Permalink
limit to 1000 items
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustify committed Mar 23, 2021
1 parent 945139e commit 26dff93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Pocsag.Plugin/PocsagControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ private void MessageReceived(Pocsag.Message message)
this.bindingList.Add(message);
while (this.bindingList.Count > 1000)
{
this.bindingList.RemoveAt(0);
}
if (lastVisible == lastIndex)
{
this.dataGridView1.FirstDisplayedScrollingRowIndex = firstDisplayed + 1;
Expand Down

0 comments on commit 26dff93

Please sign in to comment.