继续支持本地化,配置信息的本地化语言支持,v1.6.4
This commit is contained in:
@@ -8,16 +8,26 @@ using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using HslCommunication;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using CommonLibrary;
|
||||
|
||||
namespace ClientsLibrary.Configuration
|
||||
{
|
||||
public partial class GeneralConfiguration : UserControl
|
||||
{
|
||||
#region Constructor
|
||||
|
||||
|
||||
public GeneralConfiguration()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Control Load
|
||||
|
||||
|
||||
private void GeneralConfiguration_Load(object sender, EventArgs e)
|
||||
{
|
||||
// 初始化
|
||||
@@ -33,8 +43,16 @@ namespace ClientsLibrary.Configuration
|
||||
MessageBox.Show("请求服务器失败,请稍后重试!");
|
||||
userButton2.Enabled = false;
|
||||
}
|
||||
|
||||
// 文本本地化
|
||||
UILocalization();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Submit
|
||||
|
||||
|
||||
private void userButton2_Click(object sender, EventArgs e)
|
||||
{
|
||||
JObject json = new JObject
|
||||
@@ -55,5 +73,23 @@ namespace ClientsLibrary.Configuration
|
||||
MessageBox.Show("上传失败!");
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Localization Support
|
||||
|
||||
/// <summary>
|
||||
/// 本地化显示的操作,还未完成
|
||||
/// </summary>
|
||||
private void UILocalization()
|
||||
{
|
||||
checkBox1.Text = UserLocalization.Localization.CheckBoxAllowUserMulti;
|
||||
checkBox2.Text = UserLocalization.Localization.CheckBoxAllowFrameLogin;
|
||||
userButton2.UIText = UserLocalization.Localization.ButtonSave;
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user