private void ShowInfo_OnClick(object sender, RoutedEventArgs e) { Button button = sender as Button; double longtitute = double.Parse(Longtitute.Text); double lattitute = double.Parse(Lattitute.Text); IEnumerable <GeoPoint> points = new List <GeoPoint> { new GeoPoint(longtitute, lattitute) }; switch (button.Content.ToString()) { case "查询2G结果": Info2G.ItemsSource = null; Info2G.ItemsSource = DCTestService.Query2GFileRecords(points, 0.03); break; case "查询3G结果": Info3G.ItemsSource = null; Info3G.ItemsSource = DCTestService.Query3GFileRecords(points, 0.03); break; case "查询4G结果": Info4G.ItemsSource = null; Info4G.ItemsSource = DCTestService.Query4GFileRecords(points, 0.03); break; } }
public static void UpdateCoverageInfos(IEnumerable <IGeoPointReadonly <double> > points, double range) { FileRecords2GList = DCTestService.Query2GFileRecords(points, range).ToList(); FileRecords3GList = DCTestService.Query3GFileRecords(points, range).ToList(); FileRecords4GList = DCTestService.Query4GFileRecords(points, range).ToList(); }
public ActionResult FileRecords4G(string fileName) { FileRecordsRepository.Update4GList(DCTestService.Query4GFileRecords(fileName).ToList()); TestFileRecordsViewModel viewModel = new TestFileRecordsViewModel { CenterX = FileRecordsRepository.FileRecords4GList.Average(x => x.BaiduLongtitute), CenterY = FileRecordsRepository.FileRecords4GList.Average(x => x.BaiduLattitute), FileName = fileName }; return(View(viewModel)); }