//添加检测点
        private void button14_Click(object sender, EventArgs e)
        {
            MsgDetection theMsgDetection = new MsgDetection();

            theMsgDetection.Text          = "添加检测点";
            theMsgDetection.isAddOrUpdate = 0;
            theMsgDetection.ShowDialog();
        }
 //修改检测点
 private void button13_Click(object sender, EventArgs e)
 {
     if (DetectionView.SelectedRows.Count > 0 && ValidateData.CellIsNullOrZero(DetectionView.SelectedRows[0].Cells["DetectionID"]))
     {
         Detection theDetection = new Detection();
         theDetection.DetectionID         = DetectionView.SelectedRows[0].Cells["DetectionID"].Value.ToString();
         theDetection.DetectionName       = DetectionView.SelectedRows[0].Cells["DetectionName"].Value.ToString();
         theDetection.DetectionNumber     = DetectionView.SelectedRows[0].Cells["DetectionNumber"].Value.ToString();
         theDetection.DetectionToSecondID = DetectionView.SelectedRows[0].Cells["DetectionToSecondID"].Value.ToString();
         theDetection.RemoteA             = DetectionView.SelectedRows[0].Cells["RemoteA"].Value.ToString();
         theDetection.RemoteB             = DetectionView.SelectedRows[0].Cells["RemoteB"].Value.ToString();
         theDetection.RemoteC             = DetectionView.SelectedRows[0].Cells["RemoteC"].Value.ToString();
         theDetection.DetectionToID       = DetectionView.SelectedRows[0].Cells["DetectionToID"].Value.ToString();
         theDetection.DetectionToName     = DetectionView.SelectedRows[0].Cells["DetectionToName"].Value.ToString();
         MsgDetection theMsgDetection = new MsgDetection(theDetection);
         theMsgDetection.Text          = "修改检测点";
         theMsgDetection.isAddOrUpdate = 1;
         theMsgDetection.ShowDialog();
     }
     else
     {
         HandelControls.Msg("请选择要修改的数据", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }