* UILedLabel, UIMarkLabel:修改默认事件和属性

This commit is contained in:
Sunny 2021-04-16 22:07:09 +08:00
parent a561db62d6
commit cc9d2e8daa
2 changed files with 6 additions and 3 deletions

View File

@ -27,8 +27,8 @@ using System.Windows.Forms;
namespace Sunny.UI
{
[ToolboxItem(true)]
[DefaultEvent("ValueChanged")]
[DefaultProperty("Value")]
[DefaultEvent("Click")]
[DefaultProperty("Text")]
public class UILedLabel : UIControl
{
public UILedLabel()

View File

@ -25,6 +25,9 @@ using System.Windows.Forms;
namespace Sunny.UI
{
[ToolboxItem(true)]
[DefaultEvent("Click")]
[DefaultProperty("Text")]
public class UIMarkLabel : UILabel
{
public UIMarkLabel()
@ -108,7 +111,7 @@ namespace Sunny.UI
{
base.SetStyleColor(uiColor);
if (uiColor.IsCustom()) return;
markColor = uiColor.PrimaryColor;
markColor = uiColor.RectColor;
Invalidate();
}