소스 검색

国际化

CXS 3 년 전
부모
커밋
5caf3e39a8
2개의 변경된 파일31개의 추가작업 그리고 0개의 파일을 삭제
  1. 23 0
      Bin/x64/Debug/Resources/XMLData/AppResource_ZH.xml
  2. 8 0
      OTSIncAMeasureApp/5-OTSMeasureStatuImageFun/SlopFocus.cs

+ 23 - 0
Bin/x64/Debug/Resources/XMLData/AppResource_ZH.xml

@@ -1589,4 +1589,27 @@
 	  <Control name="str17" text="最大" />
     </Controls>
  </Form>
+ <Form>
+    <Name>SlopFocus</Name>
+    <Controls>
+	  <Control name="SlopFocus" text="是否启用" />
+      <Control name="cB_enable" text="是否启用" />
+	  <Control name="groupBox1" text="第一点" />
+	  <Control name="label8" text="工作距离" />
+	  <Control name="bn_FirstPoint" text="获取" />
+	  <Control name="groupBox2" text="第二点" />
+	  <Control name="label6" text="工作距离" />
+	  <Control name="bn_SecondPoint" text="获取" />
+	  <Control name="groupBox3" text="第三点" />
+	  <Control name="label1" text="工作距离" />
+	  <Control name="bn_ThirdPoint" text="获取" />
+	  <Control name="bn_Cancel" text="取消" />
+	  <Control name="bn_OK" text="确定" />
+	  <Control name="str13" text="元素号" />
+	  <Control name="str14" text="原子数" />
+	  <Control name="str15" text="规则" />
+	  <Control name="str16" text="最小" />
+	  <Control name="str17" text="最大" />
+    </Controls>
+ </Form>
 </Resource>

+ 8 - 0
OTSIncAMeasureApp/5-OTSMeasureStatuImageFun/SlopFocus.cs

@@ -2,6 +2,7 @@
 using OTSDataType;
 using OTSMeasureApp._0_OTSModel.OTSDataType;
 using System;
+using System.Collections;
 using System.Collections.Generic;
 using System.ComponentModel;
 using System.Data;
@@ -20,10 +21,17 @@ namespace OTSMeasureApp._5_OTSMeasureStatuImageFun
         bool m_result=false;
         OTSSamplespaceWindow oTSSamplespaceWindow;
         public bool result {get => m_result; set => m_result = value; }
+        //国际化
+        OTSSysMgrTools.Language lan;
+        Hashtable table;
+
         public SlopFocus(OTSSamplespaceWindow a_oTSSamplespaceWindow)
         {
             InitializeComponent();
             oTSSamplespaceWindow = a_oTSSamplespaceWindow;
+            //国际化
+            lan = new OTSSysMgrTools.Language(this);
+            table = lan.GetNameTable(this.Name);
         }
         public CSlopFocusParam GetCSlopFocusParam()
         {