27 lines
780 B
C#
27 lines
780 B
C#
using DressAtelierContracts.Attributes;
|
|
using DressAtelierDataModels.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DressAtelierContracts.ViewModels
|
|
{
|
|
public class DressViewModel : IDressModel
|
|
{
|
|
[Column(title: "Name of dress", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
public string DressName { get; set; } = string.Empty;
|
|
|
|
[Column(title: "Cost", width: 100)]
|
|
public double Price { get; set; }
|
|
|
|
[Column(visible: false)]
|
|
public Dictionary<int, (IMaterialModel, int)> DressComponents { get; set; } = new();
|
|
|
|
[Column(visible: false)]
|
|
public int ID { get; set; }
|
|
}
|
|
}
|