SVN r1148
SVN-Revision: r1148
This commit is contained in:
@@ -34,6 +34,7 @@ using System.Net;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Web;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Lskj.Main.Control
|
||||
@@ -457,6 +458,22 @@ namespace Lskj.Main.Control
|
||||
{
|
||||
this.lbUserName.Text = ERPInfo.Instance.UserName;
|
||||
|
||||
if (this.lbUserName.Width+ this.lbUserName.Left-2> button6.Left)
|
||||
{
|
||||
//右上角用户名特殊处理
|
||||
this.lbUserName.Text = this.lbUserName.Text.Substring(0, 2) + "...";
|
||||
ToolTip toolTip = new ToolTip
|
||||
{
|
||||
InitialDelay = 100, // 鼠标悬浮后延迟显示时间(毫秒)
|
||||
ReshowDelay = 500, // 连续悬浮不同控件时的延迟
|
||||
ShowAlways = true, // 始终显示提示
|
||||
UseAnimation = true, // 显示动画效果
|
||||
UseFading = true, // 淡入淡出效果
|
||||
AutoPopDelay = 1000000 // 提示框自动消失时间(毫秒)
|
||||
};
|
||||
toolTip.SetToolTip(this.lbUserName, ERPInfo.Instance.UserName);
|
||||
}
|
||||
|
||||
this.tsmi_userName.Text = LanguageTranslation.Translatable ? LanguageTranslation.GetTranslatedText("用户名") + ":" + ERPInfo.Instance.UserName : "用户名:" + ERPInfo.Instance.UserName;
|
||||
this.tsmi_account_book.Text = LanguageTranslation.Translatable ? LanguageTranslation.GetTranslatedText("账套") + ":" + ERPInfo.Instance.AccountBook : "账套:" + ERPInfo.Instance.AccountBook;
|
||||
this.tsmi_version.Text = string.Format("Version:{0}", Assembly.GetExecutingAssembly().GetName().Version + "");
|
||||
|
||||
Reference in New Issue
Block a user