private void AddGridItemInvoke(DataGridView dataGridView, IPAddressGridItem item) { if (dataGridView.InvokeRequired) { dataGridView.Invoke(new AddDataGridViewItemDelegate(AddDataGridViewItem), dataGridView, item); } else { AddDataGridViewItem(dataGridView, item); } }
private void AddDataGridViewItem(DataGridView dataGridView, IPAddressGridItem item) { dataGridView.Rows.Add(item); }