Just adding some comments for clarity.

This commit is contained in:
larsbrubaker 2014-03-07 14:46:23 -08:00
parent 8750be422e
commit 24042e9a34
2 changed files with 4 additions and 1 deletions

View file

@ -210,7 +210,7 @@ namespace MatterHackers.MatterControl
if (streamToSaveTo != null)
{
streamToSaveTo.Close ();
Close ();
Close();
}
// windows vista +: filePathToSave 'test.stl'
// windows xp: filePathToSave 'test'

View file

@ -241,7 +241,10 @@ namespace MatterHackers.MatterControl
}
try
{
// save the final document
document.Save(pathAndFileToSaveTo);
// Now try and open the document. This will lanch whatever PDF viewer is on the system and ask it
// to show the file (at least on Windows).
Process.Start(pathAndFileToSaveTo);
}
catch {