コード例 #1
0
        private void btnCalculator_Click(object sender, EventArgs e)
        {
            PositionModel po     = new PositionModel();
            Double        poWave = Convert.ToDouble(tbxleftLocation.Text.Split('_')[0]);
            Double        pwWave = Convert.ToDouble(tbxleftLocation.Text.Split('_')[1]);

            po = DistanceHelper.FindNeighPosition(poWave, pwWave, Convert.ToDouble(tbxRange.Text));//(Convert.ToDouble(tbxleftLocation.Text),Convert.ToDouble(tbxRightLocation.Text), rangWave);
            richTextBox1.Text = "返回" + po.MaxLat + "|" + po.MaxLng + "|" + po.MinLat + "|" + po.MinLng;
            writeLog("返回MAX " + po.MaxLat + "|" + po.MaxLng + "|MIN" + po.MinLat + "|" + po.MinLng, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.ffffff"));
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: MalkavianMa/Utilities
        private void btnDrawALargeRectangle_Click(object sender, EventArgs e)
        {
            double poWave = Convert.ToDouble(tbxCenterPoint.Text.Split('_')[0]);
            double pwWave = Convert.ToDouble(tbxCenterPoint.Text.Split('_')[1]);
            float  prWave = Convert.ToSingle(tbxAcquisitionRange.Text);

            PositionModel bto = new 雷电定位测试工具.PositionModel();

            DrawLargeRectangle = DistanceHelper.FindNeighPosition(poWave, pwWave, prWave);
            bto = DistanceHelper.FindNeighPosition(poWave, pwWave, prWave);
            // DrawLargeRectangle= "左下:经度\r" + bto.MinLng + "\r纬度\r" + bto.MinLat + "\r" + "右上:经度\r" + bto.MaxLng + "\r纬度:\r" + bto.MaxLat;
            richTextBox2.Text = "左下:经度\r" + bto.MinLng + "\r纬度\r" + bto.MinLat + "\r" + "右上:经度\r" + bto.MaxLng + "\r纬度:\r" + bto.MaxLat;
        }