Added name property to MaterialLib

This commit is contained in:
AJ
2020-02-05 09:40:33 -05:00
parent 25ed256cdd
commit 4471e63e8b
2 changed files with 3 additions and 0 deletions

View File

@@ -10,6 +10,8 @@ namespace CincyLib.Laser
RampedPierceSteps = new RampedPierceStep[MaxSteps]; RampedPierceSteps = new RampedPierceStep[MaxSteps];
} }
public string Name { get; set; }
public string Path { get; set; } public string Path { get; set; }
public string Machine { get; set; } public string Machine { get; set; }

View File

@@ -23,6 +23,7 @@ namespace CincyLib.Laser
{ {
using (var stream = File.OpenRead(file)) using (var stream = File.OpenRead(file))
{ {
MaterialLib.Name = Path.GetFileNameWithoutExtension(file);
MaterialLib.Path = file; MaterialLib.Path = file;
Read(stream); Read(stream);
} }