Код: Выделить всё
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private readonly DatabaseQueue _dbQueue = new DatabaseQueue();
private readonly List addressList = new List();
private void Button1_Click(object sender, EventArgs e)
{
// create example data; in reality it's read from a file
for (int i = 0; i
Подробнее здесь: [url]https://stackoverflow.com/questions/79496452/process-a-set-of-operations-sequentially-on-a-different-thread-allowing-for-rep[/url]