Prechádzať zdrojové kódy

Fix the bug of incorrect loading of the measurement program management standard library

cxs 4 týždňov pred
rodič
commit
ad8884b251

+ 3 - 3
OTSIncAMeasureApp/7-OTSProgMgrInfo/ProgMgrInfoForm.cs

@@ -570,15 +570,15 @@ namespace OTSMeasureApp
             tBMeasArea.Text = m_cgenparam.GetArea().ToString();
             foreach (ComboBoxItem cbi in IDC_COMBO_STDSelect.Items)
             {
-                if (comboEngineType.SelectedIndex == (int)OTS_CLASSIFY_ENGINE_TYPE.InclustionEngine)
+                if (EngineType == (int)OTS_CLASSIFY_ENGINE_TYPE.InclustionEngine)
                 {
                     if (cbi.Text.ToString() == "NoSTDDB")
-                        IDC_COMBO_STDSelect.SelectedItem = cbi; break;
+                    { IDC_COMBO_STDSelect.SelectedItem = cbi; break; }
                 }
                 else
                 {
                     if (cbi.Text.ToString() == m_cgenparam.GetSTDSelect())
-                        IDC_COMBO_STDSelect.SelectedItem = cbi; break;
+                    { IDC_COMBO_STDSelect.SelectedItem = cbi; break; }
                 }
             }
          }