添加项目文件。

This commit is contained in:
Administrator
2026-08-04 18:36:40 +08:00
parent 16fb9e4f5a
commit a2ecbc795d
616 changed files with 149853 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
using System;
using System.ComponentModel;
using System.Windows.Forms;
namespace JinYuan.ControlLib
{
public partial class TButton : UserControl
{
public TButton()
{
InitializeComponent();
//设置控件样式,去除缓冲
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.DoubleBuffer, true);
this.SetStyle(ControlStyles.ResizeRedraw, true);
this.SetStyle(ControlStyles.Selectable, true);
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
}
private string titleName = "标题名称";
[Browsable(true)]//是否可见
[Category("自定义属性")] //类别
[Description("设置或显示标题名称")]
public string TitleName
{
get { return titleName; }
set
{
titleName = value;
this.lbl_Title.Text = titleName;
}
}
[Browsable(true)]//是否可见
[Category("自定义事件")] //类别
[Description("设置或显示按钮文本内容")]
public new EventHandler Click;
private void lbl_Title_Click(object sender, EventArgs e)
{
this.Click?.Invoke(this, e);
}
}
}