* UILedLabel, UIMarkLabel:修改默认事件和属性
This commit is contained in:
parent
a561db62d6
commit
cc9d2e8daa
@ -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()
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user