mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-04 23:39:29 +02:00
23 lines
519 B
C#
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();
|
|
}
|
|
}
|
|
} |