Removed automatic naming for items

This commit is contained in:
aj
2018-05-31 22:50:09 -04:00
parent 8967aa8b55
commit 09fa851367
3 changed files with 13 additions and 23 deletions

View File

@@ -1,29 +1,18 @@
namespace CutToLength
using Newtonsoft.Json;
namespace CutToLength
{
public class UIItem
{
private string name;
public UIItem()
{
}
public string Name
{
get
{
return string.IsNullOrWhiteSpace(name) ?
GetDefaultName() :
name;
}
set
{
name = value;
}
}
public string Name { get; set; }
public double Length { get; set; }
[JsonIgnore]
public double TotalLength
{
get { return Length * Quantity; }