PIBD-21_Lobashov_I_D_Travel.../TravelCompany/TravelCompanyContracts/ViewModels/TravelViewModel.cs
2024-05-18 14:59:42 +04:00

26 lines
792 B
C#

using TravelCompanyDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TravelCompanyContracts.Attributes;
namespace TravelCompanyContracts.ViewModels
{
public class TravelViewModel : ITravelModel
{
[Column(visible: false)]
public int Id { get; set; }
[Column(title: "Название изделия", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
public string TravelName { get; set; }
[Column(title: "Цена", width: 70)]
public double Price { get; set; }
[Column(visible: false)]
public Dictionary<int, (IComponentModel, int)> TravelComponents { get; set; } = new();
}
}