using System; namespace Decal.Adapter; /// /// ControlEvent AutoWireup /// [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] public sealed class ControlEventAttribute : ViewBaseAttribute { private string myControl; private string myEventName; /// /// Control Name /// public string Control => myControl; /// /// Event to Wire /// public string EventName => myEventName; /// /// Constructs the ControlEvent /// /// Control Name /// Event to Wire public ControlEventAttribute(string control, string eventName) { myControl = control; myEventName = eventName; } }