// Add to main forms listview. private void AddToListView() { // handle cross-thread call. if (zombieListView.InvokeRequired) { zombieListView.Invoke(new Action(AddToListView)); return; } // add stored client information to listview. zombieItem = new ZombieListItem(this); zombieItem.Text = ID; zombieItem.SubItems.Add(IP); // subitem #1 zombieItem.SubItems.Add(ping + " ms"); // Will need to add a check if client version is older than server version. // If that's the case, then update client or at least mark as outdated. zombieItem.SubItems.Add(clientVersion); zombieItem.SubItems.Add(computerName); zombieItem.SubItems.Add(username); zombieItem.SubItems.Add(OS); zombieItem.SubItems.Add(CPU); zombieItem.SubItems.Add(RAM); zombieItem.SubItems.Add(AV); zombieItem.SubItems.Add(currentWindow); // subitem #10 zombieListView.Items.Add(zombieItem); }