// 从观测值列表中获得观测数据 private void GetObstDataFromGrid(frmProcess viewForm) { int n = mKnowedObsData.Pnames.Count; // 点名 for (int i = 0; i <= n - 1; i++) { mKnowedObsData.Pnames[i] = viewForm.gridObsData.Rows[i].Cells[1].Value.ToString(); } // 夹角观测值 mKnowedObsData.bb = new List <double>(); for (int i = 0; i <= n - 3; i++) { mKnowedObsData.bb.Add(Convert.ToDouble(viewForm.gridObsData.Rows[i + 1].Cells[2].Value)); mKnowedObsData.bb[i] = BaseFunction.DMS2Hu(mKnowedObsData.bb[i]); } // 距离观测值 mKnowedObsData.SS = new List <double>(); for (int i = 0; i <= n - 4; i++) { mKnowedObsData.SS.Add(Convert.ToDouble(viewForm.gridObsData.Rows[i + 2].Cells[3].Value)); } }