te
This commit is contained in:
parent
01151e679b
commit
57b2f0400e
265 changed files with 22828 additions and 6 deletions
27
Unused/Decal.Adapter/ControlReferenceArrayAttribute.cs
Normal file
27
Unused/Decal.Adapter/ControlReferenceArrayAttribute.cs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace Decal.Adapter;
|
||||
|
||||
/// <summary>
|
||||
/// ControlReferenceArray AutoWireup
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Field)]
|
||||
public sealed class ControlReferenceArrayAttribute : ViewBaseAttribute
|
||||
{
|
||||
private Collection<string> myControls;
|
||||
|
||||
/// <summary>
|
||||
/// Control collection
|
||||
/// </summary>
|
||||
public Collection<string> Controls => myControls;
|
||||
|
||||
/// <summary>
|
||||
/// Constructs a new ControlReference array
|
||||
/// </summary>
|
||||
/// <param name="controls">Names of the controls to put in the array</param>
|
||||
public ControlReferenceArrayAttribute(params string[] controls)
|
||||
{
|
||||
myControls = new Collection<string>(controls);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue