Files
ISEbd-21_Savelyev.P.Y._Proj…/ProjectSellPC/ProjectSellPC/Entites/Warehouse.cs
2024-12-23 09:08:02 +04:00

30 lines
774 B
C#

using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace ProjectSellPC.Entites
{
public class Warehouse
{
[System.ComponentModel.Browsable(false)]
public int Id { get; set; }
[DisplayName("Вместимость")]
public int Size { get; set; } // Вместимость
[DisplayName("Адрес")]
public string Adress { get; set; }
public static Warehouse CreateEntity(int id, int size, string adress)
{
return new Warehouse { Id = id, Size = size, Adress = adress };
}
public override string ToString()
{
return Adress;
}
}
}