Explorar o código

修改 样品台编辑器 包含部分重名 加载不显示的bug

cxs hai 1 ano
pai
achega
f2eb19b1dc
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      OTSIncAMeasureApp/7-OTSProgMgrInfo/Stage/DlgStageMgr.cs

+ 2 - 2
OTSIncAMeasureApp/7-OTSProgMgrInfo/Stage/DlgStageMgr.cs

@@ -293,8 +293,8 @@ namespace OTSModelSharp.Measure.GetStageInfo
                 foreach (var pStage in m_pStageFile.GetStagesList())
                 {
                     string sCurrentName = pStage.GetName();
-                    int findIndex = m_ctrlListBoxStageList.FindString(sCurrentName);
-                    if (findIndex < 0)
+                    //int findIndex = m_ctrlListBoxStageList.FindString(sCurrentName);
+                    if (!m_ctrlListBoxStageList.Items.Contains(sCurrentName))
                     {
                         m_ctrlListBoxStageList.Items.Add(sCurrentName);
                     }