提交当前本机整理版本
This commit is contained in:
@@ -1382,4 +1382,37 @@ namespace Lskj.ProductPlatform
|
||||
if (!string.IsNullOrWhiteSpace(ERPInfo.Instance.LanguageName))
|
||||
{
|
||||
//翻译按钮固定文本
|
||||
this.TranslationFixedButton(this.panelC
|
||||
this.TranslationFixedButton(this.panelControl13);
|
||||
this.label5.Visible = false;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 翻译文本
|
||||
/// </summary>
|
||||
/// <param name="Control"></param>
|
||||
public void TranslationFixedButton(System.Windows.Forms.Control Control)
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(ERPInfo.Instance.LanguageName))
|
||||
{
|
||||
foreach (System.Windows.Forms.Control ctrol in Control.Controls)
|
||||
{
|
||||
if (ctrol is Button)
|
||||
{
|
||||
Button simpleButton = ctrol as Button;
|
||||
simpleButton.Text = Business.Impl.LanguageTranslation.GetTranslatedText(ctrol.Text);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user