private void ShownReportslist() { ShownReports.Clear(); foreach (Report report in FactoryDal.GetDal().GetReports()) { ShownReports.Add(report); } }
private void updateShownReportsByDate() { ShownReports.Clear(); foreach (Report report in FactoryDal.GetDal().GetReports()) { if (report.FallingTime.Date == Analysis.SelectedDate.Date) { ShownReports.Add(report); } } }
private void showAllReports() { fillReports(); ShownReports.Clear(); foreach (Report report in tempReportsToShow) { if (report.FallingTime.Date == analysis.SelectedDate.Date) { ShownReports.Add(report); } } }
private void showReports() { fillReports(); ShownReports.Clear(); double lat = getLat(Analysis.SelectedAreaLocation), lon = getLong(Analysis.SelectedAreaLocation), tempLat, tempLong; foreach (Report report in tempReportsToShow) { tempLat = getLat(report.LatLongLocation); tempLong = getLong(report.LatLongLocation); if ((Math.Abs(tempLong - lon) <= 1.25 && Math.Abs(tempLat - lat) <= 1.25) && (report.FallingTime.Date == analysis.SelectedDate.Date)) { ShownReports.Add(report); } } }