48 lines
1016 B
C#
48 lines
1016 B
C#
using System;
|
|
|
|
namespace MileageTraker.Web.Utility
|
|
{
|
|
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
|
|
public class FormatHintAttribute : Attribute
|
|
{
|
|
public string Text { get; set; }
|
|
|
|
public FormatHintAttribute(string text)
|
|
{
|
|
Text = text;
|
|
}
|
|
}
|
|
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
|
|
public class UnitsAttribute : Attribute
|
|
{
|
|
public string Text { get; set; }
|
|
|
|
public UnitsAttribute(string text)
|
|
{
|
|
Text = text;
|
|
}
|
|
}
|
|
|
|
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
|
|
public class NoEditLabelAttribute : Attribute
|
|
{
|
|
}
|
|
|
|
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
|
|
public sealed class RenderModeAttribute : Attribute
|
|
{
|
|
public RenderMode RenderMode { get; set; }
|
|
|
|
public RenderModeAttribute(RenderMode renderMode)
|
|
{
|
|
RenderMode = renderMode;
|
|
}
|
|
}
|
|
|
|
public enum RenderMode
|
|
{
|
|
Any,
|
|
EditModeOnly,
|
|
DisplayModeOnly
|
|
}
|
|
} |