MosswartMassacre/Unused/Decal.Adapter/ControlReferenceAttribute.cs
2025-06-09 02:03:11 +02:00

26 lines
536 B
C#

using System;
namespace Decal.Adapter;
/// <summary>
/// ControlReference AutoWireup
/// </summary>
[AttributeUsage(AttributeTargets.Field)]
public sealed class ControlReferenceAttribute : ViewBaseAttribute
{
private string myControl;
/// <summary>
/// The Control Name
/// </summary>
public string Control => myControl;
/// <summary>
/// Construct a new ControlReference
/// </summary>
/// <param name="control">Control to reference</param>
public ControlReferenceAttribute(string control)
{
myControl = control;
}
}