コード例 #1
0
        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;
            }
        }
コード例 #2
0
 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();
 }
コード例 #3
0
        public ActionResult FileRecords3G(string fileName)
        {
            FileRecordsRepository.Update3GList(DCTestService.Query3GFileRecords(fileName).ToList());
            TestFileRecordsViewModel viewModel = new TestFileRecordsViewModel
            {
                CenterX  = FileRecordsRepository.FileRecords3GList.Average(x => x.BaiduLongtitute),
                CenterY  = FileRecordsRepository.FileRecords3GList.Average(x => x.BaiduLattitute),
                FileName = fileName
            };

            return(View(viewModel));
        }