Commit 4146991f LN

中英文修改

1 个父辈 09f2f46e
......@@ -177,6 +177,9 @@
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<None Include="resource\ResourceMap.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<None Include="App.config">
......
......@@ -82,11 +82,26 @@ namespace OnlineStore
{
eng = array[2].Replace('&', ',').Trim();
}
if (ChinaMap.ContainsKey(key))
{
ChinaMap[key] = china;
}
else
{
ChinaMap.Add(key, china);
}
if (String.IsNullOrEmpty(eng).Equals(false))
{
if (EnglishMap.ContainsKey(key))
{
EnglishMap[key] = eng;
}
else
{
EnglishMap.Add(key, eng);
}
// EnglishMap.Add(key, eng);
}
}
}catch(Exception ex)
{
......@@ -170,7 +185,13 @@ namespace OnlineStore
{
if (array.Length >= 3)
{
map.Add(array[1].Replace('&', ',').Trim(), array[2].Replace('&', ',').Trim());
string key = array[1].Replace('&', ',').Trim();
string value = array[2].Replace('&', ',').Trim();
if (map.ContainsKey(key))
{
map[key] = value;
}
else { map.Add(key, value); }
}
}
catch (Exception ex)
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!