Browse Source

补偿 sourcegrid 首排单元格 便数字 bug

CXS 3 years ago
parent
commit
a3857aab8b
1 changed files with 3 additions and 4 deletions
  1. 3 4
      OTSIncAMeasureApp/3-OTSDisplaySourceGridData/OTSPropertyWindow.cs

+ 3 - 4
OTSIncAMeasureApp/3-OTSDisplaySourceGridData/OTSPropertyWindow.cs

@@ -306,16 +306,15 @@ namespace OTSMeasureApp
 
                     if (result == DialogResult.OK)
                     {
+                        string str = PropGrid[0, 0].Value.ToString();
+
                         PropGrid[m_SampleGrid.m_ClickRow, m_SampleGrid.m_ClickColumn].Value = StopModeDialog.StopMode;
                         PropGrid[m_SampleGrid.m_ClickRow + 2, m_SampleGrid.m_ClickColumn].Value = StopModeDialog.FieldMode;
                         PropGrid[m_SampleGrid.m_ClickRow + 3, m_SampleGrid.m_ClickColumn].Value = StopModeDialog.TimeMode;
                         PropGrid[m_SampleGrid.m_ClickRow + 1, m_SampleGrid.m_ClickColumn].Value = StopModeDialog.ParticleMode;
                         PropGrid[m_SampleGrid.m_ClickRow + 4, m_SampleGrid.m_ClickColumn].Value = StopModeDialog.AreaMode;
-                        //if(PropGrid[0, 0].Value=="+")
-                        //{
 
-                        //}
-                        PropGrid[0, 0].Value = "-";
+                        PropGrid[0, 0].Value = str;
                         PropGrid.Refresh();
                         PropGrid.Invalidate();
                     }