Added Export button to PartPreviewWindow with functionality.

This commit is contained in:
gregory-diaz 2014-10-10 14:52:50 -07:00
parent b3589d6c8c
commit f6e5929e5b
2 changed files with 45 additions and 4 deletions

View file

@ -28,12 +28,12 @@ namespace MatterHackers.MatterControl
bool partIsGCode = false;
string documentsPath;
public ExportPrintItemWindow(PrintItemWrapper printItemWraper)
public ExportPrintItemWindow(PrintItemWrapper printItemWrapper)
: base(400, 250)
{
this.printItemWrapper = printItemWraper;
this.printItemWrapper = printItemWrapper;
documentsPath = System.Environment.GetFolderPath (System.Environment.SpecialFolder.Personal);
if (Path.GetExtension(printItemWraper.FileLocation).ToUpper() == ".GCODE")
if (Path.GetExtension(printItemWrapper.FileLocation).ToUpper() == ".GCODE")
{
partIsGCode = true;
}