2024-06-21 21:49:23 +04:00
|
|
|
|
using ShipyardContracts.Attributes;
|
|
|
|
|
using ShipyardDataModels.Models;
|
2024-04-27 18:26:46 +04:00
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
namespace ShipyardContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class ShipViewModel : IShipModel
|
|
|
|
|
{
|
2024-06-21 21:49:23 +04:00
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
[Column(title: "Название корабля", gridViewAutoSize: GridViewAutoSize.Fill,
|
|
|
|
|
isUseAutoSize: true)]
|
|
|
|
|
public string ShipName { get; set; } = string.Empty;
|
|
|
|
|
[Column(title: "Цена", width: 100)]
|
|
|
|
|
public double Price { get; set; }
|
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public Dictionary<int, (IComponentModel, int)> ShipComponents
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
} = new();
|
|
|
|
|
}
|
2024-04-27 18:26:46 +04:00
|
|
|
|
}
|