2023-01-29 22:09:46 +04:00
|
|
|
|
using AbstractIceCreamShopDataModels.Models;
|
2023-04-11 15:57:59 +04:00
|
|
|
|
using IceCreamShopContracts.Attributes;
|
2023-01-29 22:09:46 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace IceCreamShopContracts.ViewModels
|
|
|
|
|
{
|
2023-01-30 11:43:43 +04:00
|
|
|
|
public class IceCreamViewModel : IIceCreamModel
|
2023-01-29 22:09:46 +04:00
|
|
|
|
{
|
2023-04-11 15:57:59 +04:00
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("Название мороженого", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
|
|
|
public string IceCreamName { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
[Column("Цена", width: 100)]
|
|
|
|
|
public double Price { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public Dictionary<int, (IComponentModel, int)> IceCreamComponents { get; set; } = new();
|
2023-01-29 22:09:46 +04:00
|
|
|
|
}
|
|
|
|
|
}
|