Selaa lähdekoodia

调试修改测量程序

sunyi 5 vuotta sitten
vanhempi
commit
d8d09c17f8

+ 1 - 1
OTS/OTSModelSharp/Measure/GetStageInfo/StageFile.cs

@@ -1301,7 +1301,7 @@ namespace OTSModelSharp
 			return null;
 		}
 
-            CStage pStageClr = new CStage(pStage);
+         CStage pStageClr = new CStage(pStage);
 
 		return pStageClr;
 	  }

+ 8 - 6
OTS/OTSModelSharp/OTSDataType/MultiLang.cs

@@ -64,16 +64,18 @@ namespace OTSDataType
             if (ss == "EN")
             {
                 // xml.Load(".\\Resources\\XMLData\\ResourceForSourceGrid-EN.xml");//载入xml文件
-                xml.Load(".\\Resources\\XMLData\\ResourceForSTDManage-EN.xml");
+                xml.Load(".\\Resources\\Resources\\XMLData\\ResourceForCpp\\ResourceForSTDManage-EN.xml");
             }
             else if (ss == "ZH")
             {
                 // xml.Load(".\\Resources\\XMLData\\ResourceForSourceGrid-ZH.xml");//载入xml文件
-                xml.Load(".\\Resources\\XMLData\\ResourceForSTDManage-ZH.xml");
+               // xml.Load(".\\Resources\\XMLData\\LanguageDefine.xml");
+                xml.Load(".\\Resources\\XMLData\\ResourceForCpp-ZH.xml");
             }
-             root = xml.SelectSingleNode("XMLData");           
-             root2 = root.SelectSingleNode("collection");
-             XmlNodeList childlist = root2.ChildNodes;
+            XmlDocument xml1 = new XmlDocument();
+            XmlNode root3 = xml1.SelectSingleNode("collection");
+            XmlNode root4 = root3.SelectSingleNode("member");
+            XmlNodeList childlist = root2.ChildNodes;
             for (int i = 0; i < childlist.Count; i++)
             {
                 int colkey = -1;
@@ -116,7 +118,7 @@ namespace OTSDataType
                     }
                     //try
                     //{
-                        rg.mapRes[key] = sr;
+                    rg.mapRes[key] = sr;
                     //}
                     //catch (System.Exception ex)
                     //{

+ 2 - 1
OTS/OTSModelSharp/OTSModelSharp.csproj

@@ -20,10 +20,11 @@
     <DebugSymbols>true</DebugSymbols>
     <DebugType>full</DebugType>
     <Optimize>false</Optimize>
-    <OutputPath>bin\Debug\</OutputPath>
+    <OutputPath>..\Bin\Win32\Debug\</OutputPath>
     <DefineConstants>DEBUG;TRACE</DefineConstants>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
+    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
     <DebugType>pdbonly</DebugType>

+ 3 - 0
OTS/OTSModelSharp/OTSModelSharp.csproj.user

@@ -3,4 +3,7 @@
   <PropertyGroup>
     <ProjectView>ProjectFiles</ProjectView>
   </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
+    <EnableUnmanagedDebugging>true</EnableUnmanagedDebugging>
+  </PropertyGroup>
 </Project>