using System; namespace CommonTools.Attributes { [AttributeUsage(AttributeTargets.Property, AllowMultiple = true)] public class ViewModelPropertyAttribute : Attribute { /// /// Название на форме /// public string DisplayName { get; set; } /// /// Скрывать или нет /// public bool IsHide { get; set; } /// /// Ширина колонки /// public int ColumnWidth { get; set; } /// /// Конструктор /// /// Название на форме /// Скрывать или нет /// Ширина колонки public ViewModelPropertyAttribute(string displayName, int columnWidth, bool isHide = false) { DisplayName = displayName; ColumnWidth = columnWidth; IsHide = isHide; } } }