private void UpdateTeamDisplay(TeamData td) { StatusView.BeginUpdate(); StatusView.Items.RemoveByKey(td.CID); ListViewItem lvi = new ListViewItem(); lvi.Text = td.CID; lvi.Name = td.CID; lvi.SubItems.Add(td.Name); lvi.SubItems.Add(td.Coordinates.MGRS + " / " + td.Coordinates.Latitude.ToString("N6") + ", " + td.Coordinates.Longitude.ToString("N6")); DateTime add_time = td.Coordinates.Time; lvi.SubItems.Add(add_time.ToShortTimeString() + add_time.ToUniversalTime().ToString(" (HH:mm:ssZ)")); if (td.Status == TrackStatus.TRACKING) { lvi.Group = StatusView.Groups["Tracking"]; } else if (td.Status == TrackStatus.DELAYED) { lvi.Group = StatusView.Groups["Delayed"]; } else { lvi.Group = StatusView.Groups["Active"]; } StatusView.Items.Add(lvi); StatusView.EndUpdate(); }