Files
DesktopMagic/src/DesktopMagicPluginAPI/Inputs/Element.cs
T

23 lines
519 B
C#

using System;
namespace DesktopMagicPluginAPI.Inputs
{
/// <summary>
/// The element base class.
/// </summary>
public abstract class Element
{
/// <summary>
/// Occurs when the value has been changed.
/// </summary>
public event Action OnValueChanged;
/// <summary>
/// Triggers the <see cref="OnValueChanged"/> event.
/// </summary>
protected void ValueChanged()
{
OnValueChanged?.Invoke();
}
}
}