private CFADataSet.IncidentsRow GetNewIncidentsRow(CFADataSet.IncidentsDataTable incidents) { string guid = incidentRSSNode.SelectSingleNode("guid").InnerText; CFADataSet.IncidentsRow incidentRow = incidents.FindByGUID(guid); string description = incidentRSSNode.SelectSingleNode("description").InnerText; if (incidentRow == null) { incidentRow = incidents.NewIncidentsRow(); incidentRow.GUID = guid; UpdateFields(incidentRow, description); if (FilterRow(incidentRow)) // TODO: This is a view issue { incidents.Rows.Add(incidentRow); } } else { UpdateFields(incidentRow, description); } return(incidentRow); }
void IRSSReaderListener.OnRefresh(XmlDocument document) { CFADataSet.IncidentsDataTable incidentsTable = dataSet.Incidents; List <CFADataSet.IncidentsRow> incidentRows = CopyIncidentRows(incidentsTable); RemoveUpdatedIncidents(document, incidentRows); RemoveIncidentsNotUpdated(incidentRows); foreach (IIncidentsRSSReaderListener listener in listeners) { listener.OnSuccessfullUpdate(); } }
public CFADataSet.IncidentsRow Update(CFADataSet.IncidentsDataTable incidents) { return(GetNewIncidentsRow(incidents)); }
public IncidentEditPanelController(IIncidentEditPanel panel, ICFADataSet dataSet) { this.panel = panel; incidents = dataSet.Incidents; }