PIbd-23_Borschevskaya_A.A._.../FurnitureAssembly/FurnitureAssemblyContracts/ViewModels/FurnitureViewModel.cs

23 lines
800 B
C#
Raw Normal View History

using FurnitureAssemblyContracts.Attributes;
using FurnitureAssemblyDataModels.Models;
2023-01-29 18:06:26 +04:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FurnitureAssemblyContracts.ViewModels
{
public class FurnitureViewModel : IFurnitureModel
{
[Column(visible: false)]
2023-01-29 18:06:26 +04:00
public int Id { get; set; }
[Column(title: "Название изделия", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
2023-01-29 18:06:26 +04:00
public string FurnitureName { get; set; } = string.Empty;
[Column(title: "Цена", width: 70)]
2023-01-29 18:06:26 +04:00
public double Price { get; set; }
[Column(visible: false)]
2023-01-29 18:06:26 +04:00
public Dictionary<int, (IComponentModel, int)> FurnitureComponents{ get; set; } = new();
}
}