30 lines
774 B
C#
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;
|
|
}
|
|
}
|
|
}
|