using System;
using System.Collections.Generic;
using System.Text;
namespace TFT_MelsecMcNet
{
/*******************************************************************************
*
* 用于显示和保存的数据信息,未来支持中英文
*
* Used to the return result class in the synchronize communication and communication for industrial Ethernet
*
*******************************************************************************/
///
/// 系统的字符串资源及多语言管理中心 ->
/// System string resource and multi-language management Center
///
public static class StringResources
{
#region Constractor
static StringResources()
{
if (System.Globalization.CultureInfo.CurrentCulture.ToString().StartsWith("zh"))
{
SetLanguageChinese();
}
else
{
SeteLanguageEnglish();
}
}
#endregion
///
/// 获取或设置系统的语言选项 ->
/// Gets or sets the language options for the system
///
public static DefaultLanguage Language = new();
///
/// 将语言设置为中文 ->
/// Set the language to Chinese
///
public static void SetLanguageChinese()
{
Language = new DefaultLanguage();
}
///
/// 将语言设置为英文 ->
/// Set the language to English
///
public static void SeteLanguageEnglish()
{
Language = new English();
}
}
}