Пример #1
0
 private void setlvClientInfoCallback(String name, String ip, String sysn, String c**t, int id)
 {
     if (this.InvokeRequired)
     {
         setlvClientInfo k = new setlvClientInfo(setlvClientInfoCallback);
         this.Invoke(k, new object[] { name, ip, sysn, c**t, id });
     }
     else
     {
         ListViewItem client = listView1.Items[id];
         client.SubItems.Add(name);
         client.SubItems.Add(ip);
         client.SubItems.Add(sysn);
         client.SubItems.Add(c**t);
     }
 }
Пример #2
0
 private void setlvClientInfoCallback(String name, String ip, String av, int id)
 {
     if (this.InvokeRequired)
     {
         setlvClientInfo k = new setlvClientInfo(setlvClientInfoCallback);
         this.Invoke(k, new object[] { name, ip, av, id });
     }
     else
     {
         ListViewItem client = listView1.Items[id];
         client.SubItems.Add(name);
         client.SubItems.Add(ip);
         client.SubItems.Add(av);
         connectedName = name;
     }
 }