aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2018-05-13 12:08:20 +0300
committerAvi Levkovich <avi@twine-s.com>2018-05-13 12:08:20 +0300
commit82ea027530fa6e2512b30d1e069a602aed73be5f (patch)
tree6af1d6a41973f0598f063dd0c122ef139a412994 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs
parente74f4da5899eea9abea143771fa2a950a50da963 (diff)
parentc61415008c418af3d628185efa1fa746aaf0516c (diff)
downloadTango-82ea027530fa6e2512b30d1e069a602aed73be5f.tar.gz
Tango-82ea027530fa6e2512b30d1e069a602aed73be5f.zip
move to one motors id enum + remove AMT_OF_WORDS
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs
index ab0df302e..739f0bcde 100644
--- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs
@@ -1856,8 +1856,8 @@ namespace Tango.MachineStudio.Developer.ViewModels
{
try
{
- String tempPath = PathHelper.GetTempFolderPath();
- String filePath = Path.Combine(tempPath, job.EmbroideryFileName);
+ var tempDir = TemporaryManager.CreateFolder();
+ String filePath = Path.Combine(tempDir.Path, job.EmbroideryFileName);
File.WriteAllBytes(filePath, job.EmbroideryFileData);
EmbroideryFileConverter.ConvertEmbroideryFile(filePath, dlg.FileName);
_notification.ShowInfo("Embroidery file exported successfully.");