示例#1
0
 private void AddGridItemInvoke(DataGridView dataGridView, IPAddressGridItem item)
 {
     if (dataGridView.InvokeRequired)
     {
         dataGridView.Invoke(new AddDataGridViewItemDelegate(AddDataGridViewItem), dataGridView, item);
     }
     else
     {
         AddDataGridViewItem(dataGridView, item);
     }
 }
示例#2
0
 private void AddDataGridViewItem(DataGridView dataGridView, IPAddressGridItem item)
 {
     dataGridView.Rows.Add(item);
 }