瀏覽代碼

change to such a mode:only disconnect the sem(eds) after a measure has been finished in the MeasureApp. But in reportApp we disconnect it every time when we control the sem.

gsp 3 年之前
父節點
當前提交
3755c93d75
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      OTSIncAMeasureApp/4-OTSSamplespaceGraphicsPanel/OTSSamplespaceWindow.cs

+ 6 - 6
OTSIncAMeasureApp/4-OTSSamplespaceGraphicsPanel/OTSSamplespaceWindow.cs

@@ -3573,7 +3573,7 @@ namespace OTSMeasureApp
                     
                 }
 
-                m_SEMDATAFieldManage.CloseSEM();
+                //m_SEMDATAFieldManage.CloseSEM();
             }
            
             #endregion
@@ -3913,7 +3913,7 @@ namespace OTSMeasureApp
                 {
                     return true;
                 }
-                m_SEMDATAFieldManage.CloseSEM();
+                //m_SEMDATAFieldManage.CloseSEM();
             }
             return false;
             #endregion
@@ -3936,7 +3936,7 @@ namespace OTSMeasureApp
                 magnification = semParameters[0];
                 WorkingDistance = semParameters[1];
 
-                m_SEMDATAFieldManage.CloseSEM();
+                //m_SEMDATAFieldManage.CloseSEM();
                 return true;
             }
             return false;
@@ -4027,7 +4027,7 @@ namespace OTSMeasureApp
                 {
                      bret = m_SEMDATAFieldManage.SetSEMCurrentLocation(m_MouseDownLocation, m_RectangleGDIObjects, m_OTSSampleStageData, IsWidth, Width, Height);
 
-                m_SEMDATAFieldManage.CloseSEM();
+                //m_SEMDATAFieldManage.CloseSEM();
                 }
            
                 return bret;
@@ -4053,7 +4053,7 @@ namespace OTSMeasureApp
                     bret = (m_SEMDATAFieldManage.DriveSEMToLocation(m_MouseDownLocation, m_RectangleGDIObjects, m_SingleGDIObjects, m_OTSSampleStageData, IsWidth, Width, Height));
 
 
-                    m_SEMDATAFieldManage.CloseSEM();
+                    //m_SEMDATAFieldManage.CloseSEM();
 
 
                 }
@@ -4084,7 +4084,7 @@ namespace OTSMeasureApp
                 {
                      bret = m_SEMDATAFieldManage.GetSemLocation(ref SemLocation);
 
-                m_SEMDATAFieldManage.CloseSEM();
+                //m_SEMDATAFieldManage.CloseSEM();
 
                 }
             return bret;