标签页 标题汉化
This commit is contained in:
@@ -178,6 +178,26 @@ namespace CleanMachineHMI.Utils
|
||||
}
|
||||
}
|
||||
|
||||
public static void SetSingleControlText(this Control form, Control control)
|
||||
{
|
||||
try
|
||||
{
|
||||
var key = form.Name + "|" + control.Name;
|
||||
if (!GlobalHelper.ThemeLanguage.ContainsKey(key))
|
||||
{
|
||||
control.Text = control.Name;
|
||||
}
|
||||
AddzhCN(key, control.Text, "");
|
||||
|
||||
control.Text = GlobalHelper.ThemeLanguage[key];
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设定数据视图列文本
|
||||
/// </summary>
|
||||
@@ -234,7 +254,7 @@ namespace CleanMachineHMI.Utils
|
||||
}
|
||||
}
|
||||
|
||||
public static List<string> GetComBoboxItemArr(this Control form, string controlCode, string controlType)
|
||||
public static List<string> GetComBoboxItemArr(this Control form, string controlCode)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user