Browse Source

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

cxs 1 năm trước cách đây
mục cha
commit
f2eb19b1dc
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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);
                     }