PIbd-21_RazubaevSM_Plumbing.../PlumbingRepair/PlumbingRepairContracts/Attributes/ColumnAttribute.cs

30 lines
1.0 KiB
C#
Raw Permalink Normal View History

2024-05-16 17:00:28 +04:00
namespace PlumbingRepairContracts.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-06-18 14:07:54 +04:00
public string FormattedDate { get; private set; }
public bool FormattedNumber { get; private set; }
2024-05-16 17:00:28 +04:00
2024-05-16 19:02:46 +04:00
2024-06-18 14:07:54 +04:00
public ColumnAttribute(string title = "", bool visible = true, int width = 0, GridViewAutoSize gridViewAutoSize = GridViewAutoSize.None, bool isUseAutoSize = false, string formatDate = "", bool formattedNumber = false)
2024-05-16 17:00:28 +04:00
{
Title = title;
Visible = visible;
Width = width;
GridViewAutoSize = gridViewAutoSize;
IsUseAutoSize = isUseAutoSize;
2024-05-16 19:02:46 +04:00
FormattedDate = formatDate;
FormattedNumber = formattedNumber;
}
2024-05-16 17:00:28 +04:00
}
}