|
|
@ -73,21 +73,13 @@ namespace RfidWeb.Frm
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.Invoke(() =>
|
|
|
|
this.Invoke(() =>
|
|
|
|
{
|
|
|
|
|
|
|
|
try
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int currentFirstVisibleRowIndex = dataGridView1.FirstDisplayedScrollingRowIndex;
|
|
|
|
int currentFirstVisibleRowIndex = dataGridView1.FirstDisplayedScrollingRowIndex;
|
|
|
|
this.dataGridView1.DataSource = lsList;
|
|
|
|
this.dataGridView1.DataSource = lsList;
|
|
|
|
if (currentFirstVisibleRowIndex >= 0 && currentFirstVisibleRowIndex < dataGridView1.Rows.Count)
|
|
|
|
if (currentFirstVisibleRowIndex > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dataGridView1.FirstDisplayedScrollingRowIndex = currentFirstVisibleRowIndex;
|
|
|
|
dataGridView1.FirstDisplayedScrollingRowIndex = currentFirstVisibleRowIndex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (Exception e)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Console.WriteLine(e);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -106,20 +98,13 @@ namespace RfidWeb.Frm
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.Invoke(() =>
|
|
|
|
this.Invoke(() =>
|
|
|
|
{
|
|
|
|
|
|
|
|
try
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int currentFirstVisibleRowIndex = dataGridView2.FirstDisplayedScrollingRowIndex;
|
|
|
|
int currentFirstVisibleRowIndex = dataGridView2.FirstDisplayedScrollingRowIndex;
|
|
|
|
this.dataGridView2.DataSource = lsList;
|
|
|
|
this.dataGridView2.DataSource = lsList;
|
|
|
|
if (currentFirstVisibleRowIndex >= 0 && currentFirstVisibleRowIndex < dataGridView2.Rows.Count)
|
|
|
|
if (currentFirstVisibleRowIndex > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dataGridView2.FirstDisplayedScrollingRowIndex = currentFirstVisibleRowIndex;
|
|
|
|
dataGridView2.FirstDisplayedScrollingRowIndex = currentFirstVisibleRowIndex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (Exception e)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Console.WriteLine(e.Message);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|