Override ToString method on upper and lower tools

This commit is contained in:
AJ
2019-03-28 23:15:04 -04:00
parent 508d2947c6
commit 25ed256cdd
2 changed files with 10 additions and 0 deletions

View File

@@ -94,5 +94,10 @@ namespace CincyLib.PressBrake
Console.WriteLine(" Type: {0}", Type); Console.WriteLine(" Type: {0}", Type);
Console.WriteLine(" Bend Radius: {0}", DevelopedRadius()); Console.WriteLine(" Bend Radius: {0}", DevelopedRadius());
} }
public override string ToString()
{
return $"{ToolName}, {Length} LG";
}
} }
} }

View File

@@ -87,6 +87,11 @@ namespace CincyLib.PressBrake
Console.WriteLine(" Offset: {0}", Offset); Console.WriteLine(" Offset: {0}", Offset);
Console.WriteLine(" Type: {0}", Type); Console.WriteLine(" Type: {0}", Type);
} }
public override string ToString()
{
return $"{ToolName}, {Length} LG";
}
} }
public class ToolSegment public class ToolSegment