private void UpdatePanel() { if (incidents.Rows.Count > 0) { if (currentIndicentIndex >= incidents.Rows.Count) { currentIndicentIndex = incidents.Rows.Count - 1; } CFADataSet.IncidentsRow incident = GetIncident(); panel.SetGuid(incident.GUID); panel.SetName(incident.Name); panel.SetLocation(incident.Location); panel.SetType(incident.Type); panel.SetStatus(incident.Status); panel.SetSize(incident.Size); panel.SetPublicationTime(incident.Time); panel.SetUpdateTime(incident.UpdateTime); panel.SetRegion(incident.Region); panel.SetVehicles(incident.Appliances); } }