Files
RemSox/UI/GUI/UIEelements/Controls/Button.cs
T

25 lines
498 B
C#

using System.Drawing;
namespace RemSox.UI.GUI.UIEelements.Controls;
public class Button() : Control("Button")
{
public event EventHandler? OnClick;
public string Text
{
get;
set => SetProperty(nameof(Text), ref field, value);
} = string.Empty;
public Color TextColor
{
get;
set => SetProperty(nameof(TextColor), ref field, value);
} = Color.Black;
public void Click()
{
OnClick?.Invoke(this, EventArgs.Empty);
}
}