PIbd-22_Isaeva_A.I._FishFac.../FishFactoryContracts/ViewModels/CannedViewModel.cs
2024-06-18 15:56:18 +04:00

20 lines
622 B
C#

using FishFactoryContracts.Attributes;
using FishFactoryDataModel.Models;
using System.ComponentModel;
namespace FishFactoryContracts.ViewModels
{
public class CannedViewModel : ICannedModel
{
[Column(visible: false)]
public int Id { get; set; }
[Column(title: "Название консервы", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
public string CannedName { get; set; }
[Column(title: "Цена", width: 80)]
public double Price { get; set; }
[Column(visible: false)]
public Dictionary<int, (IComponentModel, int)> CannedComponents { get; set; } = new();
}
}