Added name property to MaterialLib
This commit is contained in:
@@ -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; }
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user