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