te
This commit is contained in:
parent
01151e679b
commit
57b2f0400e
265 changed files with 22828 additions and 6 deletions
35
Unused/Decal.Adapter/ControlEventAttribute.cs
Normal file
35
Unused/Decal.Adapter/ControlEventAttribute.cs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
|
||||
namespace Decal.Adapter;
|
||||
|
||||
/// <summary>
|
||||
/// ControlEvent AutoWireup
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
|
||||
public sealed class ControlEventAttribute : ViewBaseAttribute
|
||||
{
|
||||
private string myControl;
|
||||
|
||||
private string myEventName;
|
||||
|
||||
/// <summary>
|
||||
/// Control Name
|
||||
/// </summary>
|
||||
public string Control => myControl;
|
||||
|
||||
/// <summary>
|
||||
/// Event to Wire
|
||||
/// </summary>
|
||||
public string EventName => myEventName;
|
||||
|
||||
/// <summary>
|
||||
/// Constructs the ControlEvent
|
||||
/// </summary>
|
||||
/// <param name="control">Control Name</param>
|
||||
/// <param name="controlEvent">Event to Wire</param>
|
||||
public ControlEventAttribute(string control, string eventName)
|
||||
{
|
||||
myControl = control;
|
||||
myEventName = eventName;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue