bcontrol.cs
来自「破解的飞信源代码」· CS 代码 · 共 63 行
CS
63 行
namespace Imps.Client.Pc.BizControls
{
using System;
using System.Windows.Forms;
public abstract class BControl : Control
{
private ToolTip _textToolTip;
protected string toolTipText = "";
protected BControl()
{
}
protected override void Dispose(bool disposing)
{
if (disposing && (this._textToolTip != null))
{
this._textToolTip.Dispose();
this._textToolTip = null;
}
base.Dispose(disposing);
}
protected override void OnCreateControl()
{
base.OnCreateControl();
this.TextToolTip.SetToolTip(this, this.ToolTipText);
}
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
this.TextToolTip.SetToolTip(this, this.ToolTipText);
}
protected ToolTip TextToolTip
{
get
{
if (this._textToolTip == null)
{
this._textToolTip = new ToolTip();
}
return this._textToolTip;
}
}
public string ToolTipText
{
get
{
return this.toolTipText;
}
set
{
this.toolTipText = value;
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?