2024-02-10 13:06:58 +04:00
|
|
|
|
using IceCreamShopDataModels.Models;
|
2024-05-16 22:59:22 +04:00
|
|
|
|
using IceCreamShopContracts.Attributes;
|
2024-02-10 13:06:58 +04:00
|
|
|
|
|
|
|
|
|
namespace IceCreamShopContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class IceCreamViewModel : IIceCreamModel
|
|
|
|
|
{
|
2024-05-16 22:59:22 +04:00
|
|
|
|
[Column(visible: false)]
|
2024-02-10 13:06:58 +04:00
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
2024-05-16 22:59:22 +04:00
|
|
|
|
[Column(title: "Название мороженого", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2024-02-10 13:06:58 +04:00
|
|
|
|
public string IceCreamName { get; set; } = string.Empty;
|
|
|
|
|
|
2024-05-16 22:59:22 +04:00
|
|
|
|
[Column(title: "Цена", width: 150)]
|
2024-02-10 13:06:58 +04:00
|
|
|
|
public double Price { get; set; }
|
|
|
|
|
|
2024-05-16 22:59:22 +04:00
|
|
|
|
[Column(visible: false)]
|
2024-02-10 13:06:58 +04:00
|
|
|
|
public Dictionary<int, (IComponentModel, int)> IceCreamComponents
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
} = new();
|
|
|
|
|
}
|
|
|
|
|
}
|