2023-06-03 01:27:48 +04:00
|
|
|
|
using GiftShopContracts.Attributes;
|
|
|
|
|
using GiftShopDataModels.Models;
|
2023-03-31 19:55:55 +04:00
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
|
|
namespace GiftShopContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class ComponentViewModel : IComponentModel
|
|
|
|
|
{
|
2023-06-03 01:27:48 +04:00
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int Id { get; set; }
|
2023-03-31 19:55:55 +04:00
|
|
|
|
|
2023-06-03 01:27:48 +04:00
|
|
|
|
[Column("Название компонента", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
|
|
|
public string ComponentName { get; set; } = string.Empty;
|
2023-03-31 19:55:55 +04:00
|
|
|
|
|
2023-06-03 01:27:48 +04:00
|
|
|
|
[Column("Цена", width: 80)]
|
|
|
|
|
public double Cost { get; set; }
|
2023-03-31 19:55:55 +04:00
|
|
|
|
}
|
|
|
|
|
}
|