31 lines
925 B
C#
Raw Permalink Normal View History

2024-04-03 17:52:29 +04:00
namespace PizzeriaContracts.Attributes
{
[AttributeUsage(AttributeTargets.Property)]
public class ColumnAttribute : Attribute
{
public string Title { get; private set; }
public bool Visible { get; private set; }
public int Width { get; private set; }
public GridViewAutoSize GridViewAutoSize { get; private set; }
public bool IsUseAutoSize { get; private set; }
2024-04-03 18:55:36 +04:00
public string Format { get; private set; }
public ColumnAttribute(string title = "", bool visible = true, int width = 0,
GridViewAutoSize gridViewAutoSize = GridViewAutoSize.None, bool isUseAutoSize = false,
string format = "")
2024-04-03 17:52:29 +04:00
{
Title = title;
Visible = visible;
Width = width;
GridViewAutoSize = gridViewAutoSize;
IsUseAutoSize = isUseAutoSize;
2024-04-03 18:55:36 +04:00
Format = format;
2024-04-03 17:52:29 +04:00
}
}
}