PIbd22_Kuznetsov_A.V._Sewin.../SewingDresses/SewingDressesContracts/ViewModels/DressViewModel.cs

19 lines
683 B
C#

using System.ComponentModel;
using SewingDressesContracts.Attributes;
using SewingDressesDataModels.Models;
namespace SewingDressesContracts.ViewModels
{
public class DressViewModel : IDressModel
{
[Column(visible: false)]
public int Id { get; set; }
[Column(title: "Название платья", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
public string DressName { get; set; } = string.Empty;
[Column(title: "Цена", width:100)]
public double Price { get; set; }
[Column(visible:false)]
public Dictionary<int, (IComponentModel, int)> DressComponents { get; set; } = new();
}
}