We can now load at least some amfs into the 3d view.

This commit is contained in:
larsbrubaker 2014-10-04 17:57:07 -07:00
parent 6cacb2bafd
commit f2c728d3b6
3 changed files with 34 additions and 6 deletions

View file

@ -193,7 +193,9 @@ namespace MatterHackers.MatterControl.PrintLibrary
foreach (string file in fileDropEventArgs.DroppedFiles)
{
string extension = Path.GetExtension(file).ToUpper();
if (extension == ".STL" || extension == ".GCODE")
if (extension == ".STL"
|| extension == ".AMF"
|| extension == ".GCODE")
{
fileDropEventArgs.AcceptDrop = true;
}
@ -206,7 +208,9 @@ namespace MatterHackers.MatterControl.PrintLibrary
foreach (string file in fileDropEventArgs.DroppedFiles)
{
string extension = Path.GetExtension(file).ToUpper();
if (extension == ".STL" || extension == ".GCODE")
if (extension == ".STL"
|| extension == ".AMF"
|| extension == ".GCODE")
{
fileDropEventArgs.AcceptDrop = true;
}
@ -219,7 +223,9 @@ namespace MatterHackers.MatterControl.PrintLibrary
foreach (string droppedFileName in fileDropEventArgs.DroppedFiles)
{
string extension = Path.GetExtension(droppedFileName).ToUpper();
if (extension == ".STL" || extension == ".GCODE")
if (extension == ".STL"
|| extension == ".AMF"
|| extension == ".GCODE")
{
PrintItem printItem = new PrintItem();
printItem.Name = Path.GetFileNameWithoutExtension(droppedFileName);