代码优化重构,角色配置小问题修复,继续优化中英文支持,v1.6.3

This commit is contained in:
dathlin
2017-10-07 21:32:23 +08:00
parent f248effb4c
commit 3cccf070ab
15 changed files with 387 additions and 112 deletions

View File

@@ -122,6 +122,7 @@
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "FormInputNewRole";
this.Load += new System.EventHandler(this.FormInputNewRole_Load);
this.Shown += new System.EventHandler(this.FormInputNewRole_Shown);
this.ResumeLayout(false);
this.PerformLayout();

View File

@@ -28,7 +28,33 @@ namespace ClientsLibrary
#endregion
#region Form Load
#region Localization Support
/// <summary>
/// 本地化显示的操作,还未完成
/// </summary>
private void UILocalization()
{
if(m_RoleItem == null)
{
Text = UserLocalization.Localization.AccountRoleAdd;
}
else
{
Text = UserLocalization.Localization.AccountRoleEdit;
}
label1.Text = UserLocalization.Localization.GeneralUniqueID + "";
label2.Text = UserLocalization.Localization.GeneralName + "";
label3.Text = UserLocalization.Localization.GeneralDescription + "";
userButton_login.UIText = UserLocalization.Localization.ButtonEnsure;
}
#endregion
#region Form Load Show
private void FormInputNewRole_Load(object sender, EventArgs e)
@@ -39,6 +65,11 @@ namespace ClientsLibrary
}
}
private void FormInputNewRole_Shown(object sender, EventArgs e)
{
UILocalization();
}
#endregion
@@ -49,7 +80,7 @@ namespace ClientsLibrary
{
// 此处是编辑
m_RoleItem = roleItem;
if (m_RoleItem != null)
{
textBox1.Text = m_RoleItem.RoleCode;
@@ -107,5 +138,7 @@ namespace ClientsLibrary
}
#endregion
}
}