예제 #1
0
 private void ShownReportslist()
 {
     ShownReports.Clear();
     foreach (Report report in FactoryDal.GetDal().GetReports())
     {
         ShownReports.Add(report);
     }
 }
예제 #2
0
 private void updateShownReportsByDate()
 {
     ShownReports.Clear();
     foreach (Report report in FactoryDal.GetDal().GetReports())
     {
         if (report.FallingTime.Date == Analysis.SelectedDate.Date)
         {
             ShownReports.Add(report);
         }
     }
 }
예제 #3
0
 private void showAllReports()
 {
     fillReports();
     ShownReports.Clear();
     foreach (Report report in tempReportsToShow)
     {
         if (report.FallingTime.Date == analysis.SelectedDate.Date)
         {
             ShownReports.Add(report);
         }
     }
 }
예제 #4
0
        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);
                }
            }
        }