56 lines
853 B
C#
56 lines
853 B
C#
using System;
|
|
|
|
public class KGFObjectListItemDisplayAttribute : Attribute
|
|
{
|
|
private string itsHeader;
|
|
|
|
private bool itsSearchable;
|
|
|
|
private bool itsDisplay;
|
|
|
|
public string Header
|
|
{
|
|
get
|
|
{
|
|
return itsHeader;
|
|
}
|
|
}
|
|
|
|
public bool Searchable
|
|
{
|
|
get
|
|
{
|
|
return itsSearchable;
|
|
}
|
|
}
|
|
|
|
public bool Display
|
|
{
|
|
get
|
|
{
|
|
return itsDisplay;
|
|
}
|
|
}
|
|
|
|
public KGFObjectListItemDisplayAttribute(string theHeader)
|
|
{
|
|
itsHeader = theHeader;
|
|
itsSearchable = false;
|
|
itsDisplay = true;
|
|
}
|
|
|
|
public KGFObjectListItemDisplayAttribute(string theHeader, bool theSearchable)
|
|
{
|
|
itsHeader = theHeader;
|
|
itsSearchable = theSearchable;
|
|
itsDisplay = true;
|
|
}
|
|
|
|
public KGFObjectListItemDisplayAttribute(string theHeader, bool theSearchable, bool theDisplay)
|
|
{
|
|
itsHeader = theHeader;
|
|
itsSearchable = theSearchable;
|
|
itsDisplay = theDisplay;
|
|
}
|
|
}
|