2013-05-03 07:24:52 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Annotations
|
|
|
|
|
{
|
|
|
|
|
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
|
|
|
|
|
public class FieldDefinitionAttribute : Attribute
|
|
|
|
|
{
|
|
|
|
|
public FieldDefinitionAttribute(int order)
|
|
|
|
|
{
|
|
|
|
|
Order = order;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int Order { get; private set; }
|
|
|
|
|
public string Label { get; set; }
|
|
|
|
|
public string HelpText { get; set; }
|
2013-05-20 06:19:54 +02:00
|
|
|
|
public FieldType Type { get; set; }
|
2013-06-13 09:20:33 +02:00
|
|
|
|
public Type SelectOptions { get; set; }
|
2013-05-20 06:19:54 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum FieldType
|
|
|
|
|
{
|
|
|
|
|
Textbox,
|
|
|
|
|
Password,
|
2013-06-13 09:20:33 +02:00
|
|
|
|
Checkbox,
|
|
|
|
|
Select
|
2013-05-03 07:24:52 +02:00
|
|
|
|
}
|
|
|
|
|
}
|