Exemplo n.º 1
0
        List <PointClass> StartPoints    = new List <PointClass>();   //控制点集合
        // 控制点文件
        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            ReadFile readFile = new ReadFile("读入控制点文件");

            ControlPoints = CPlaneNetAdjust1.InputCtrData(readFile.getPath());
            Tool_Class.addData <PointClass>(dataGridView3, ControlPoints);
        }
Exemplo n.º 2
0
        private void MenuItem_Click_1(object sender, RoutedEventArgs e)
        {
            ReadFile f = new ReadFile("目标坐标文件");

            MyCoordtoTrans.InputData(f.getPath(), TargetPoints);
            Tool_Class.addData <PointClass>(dataGrid2, TargetPoints);
        }
Exemplo n.º 3
0
        // 观测数据
        private void MenuItem_Click_1(object sender, RoutedEventArgs e)
        {
            ReadFile readFile = new ReadFile("读入测站信息");

            StationInfos = CPlaneNetAdjust1.InputObsData(readFile.getPath());
            Tool_Class.addData <StationClass>(dataGridView1, StationInfos);
            for (int i = 0; i < dataGridView1.Items.Count; i++)
            {
                DataGridRow row = (DataGridRow)dataGridView1.ItemContainerGenerator.ContainerFromIndex(i);
                Console.WriteLine(row);
            }
        }
Exemplo n.º 4
0
        // 读取点文件
        private void readPoint(object sender, RoutedEventArgs e)
        {
            ReadFile readFile = new ReadFile("读取点文件");

            pointPath.Text = readFile.getPath();

            readFile.getPoints().ForEach(delegate(PointClass P)
            {
                LB01.CurrentPoints.Add(P);
                string temp = P.PID.ToString() + ", " + P.H.ToString() + "(m), " + P.IsControlP.ToString() + ": " + P.IsH0.ToString() + ';' + '\n';
                pointContent.Items.Add(temp);
            });
        }
Exemplo n.º 5
0
        // 读取边文件
        private void readEdge(object sender, RoutedEventArgs e)
        {
            ReadFile readFile = new ReadFile("读取边文件");

            edgePath.Text = readFile.getPath();
            int ii = 0;

            readFile.getLines().ForEach(delegate(LineClass L)
            {
                LB01.CurrentSegments.Add(L);
                string temp = ii.ToString() + ":  " + L.SP.PID.ToString() + ",  " + L.EP.PID.ToString() + ",  " + L.dH.ToString() + "m,  " + L.Distance.ToString() + "km;" + '\n';
                edgeContent.Items.Add(temp);
                ii++;
            });
        }