20 lines
622 B
C#
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();
|
|
|
|
}
|
|
}
|