Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void AddData(string Address, string Data) //add to data view
- {
- if (listView1.InvokeRequired)
- {
- listView1.Invoke(new MethodInvoker(() => {
- if (Address == "0") listView1.Items.Clear();
- listView1.Items.Add(Address).SubItems.Add(Data);
- }));
- }
- else
- {
- if (Address == "0") listView1.Items.Clear();
- listView1.Items.Add(Address).SubItems.Add(Data) ;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement