2011-03-11 18:49:48 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Tanshu.Accounts.Contracts
|
|
|
|
|
{
|
|
|
|
|
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
|
|
|
|
|
public class DisplayAttribute : Attribute
|
|
|
|
|
{
|
|
|
|
|
public DisplayAttribute(string name, bool showInChoices, int group)
|
|
|
|
|
{
|
|
|
|
|
Name = name;
|
|
|
|
|
ShowInChoices = showInChoices;
|
|
|
|
|
Group = group;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-06 10:39:11 +00:00
|
|
|
|
public DisplayAttribute(string name, bool showInChoices, int group, bool print)
|
|
|
|
|
: this(name, showInChoices, group)
|
|
|
|
|
{
|
|
|
|
|
Print = print;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Name { get; private set; }
|
|
|
|
|
public int Group { get; private set; }
|
|
|
|
|
public bool ShowInChoices { get; private set; }
|
|
|
|
|
public bool Print { get; private set; }
|
2011-03-11 18:49:48 +00:00
|
|
|
|
}
|
|
|
|
|
}
|