refactor: 将Framework库和RT、UI放在同一个解决方案中。

This commit is contained in:
SL
2026-06-01 17:48:28 +08:00
parent 1948f4290d
commit b73d39a6b1
4331 changed files with 506148 additions and 49363 deletions
@@ -0,0 +1,67 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MECF.Framework.RT.Core
{
/*******************************************************************************
*
* 用于显示和保存的数据信息,未来支持中英文
*
* Used to the return result class in the synchronize communication and communication for industrial Ethernet
*
*******************************************************************************/
/// <summary>
/// 系统的字符串资源及多语言管理中心 ->
/// System string resource and multi-language management Center
/// </summary>
public static class StringResources
{
#region Constractor
static StringResources( )
{
if (System.Globalization.CultureInfo.CurrentCulture.ToString( ).StartsWith( "zh" ))
{
SetLanguageChinese( );
}
else
{
SeteLanguageEnglish( );
}
}
#endregion
/// <summary>
/// 获取或设置系统的语言选项 ->
/// Gets or sets the language options for the system
/// </summary>
public static Language.DefaultLanguage Language = new Language.DefaultLanguage( );
/// <summary>
/// 将语言设置为中文 ->
/// Set the language to Chinese
/// </summary>
public static void SetLanguageChinese( )
{
Language = new Language.DefaultLanguage( );
}
/// <summary>
/// 将语言设置为英文 ->
/// Set the language to English
/// </summary>
public static void SeteLanguageEnglish( )
{
Language = new Language.English( );
}
}
}