Files
CutList/CutToLength/UIItem.cs
2018-05-31 22:50:09 -04:00

32 lines
562 B
C#

using Newtonsoft.Json;
namespace CutToLength
{
public class UIItem
{
public UIItem()
{
}
public string Name { get; set; }
public double Length { get; set; }
[JsonIgnore]
public double TotalLength
{
get { return Length * Quantity; }
}
public int Quantity { get; set; } = 1;
private string GetDefaultName()
{
if (Length == 0)
return "-";
return string.Format("{0}\" LG", Length);
}
}
}