From 38bb6e439bc7f4916f8158231e590097c67b186a Mon Sep 17 00:00:00 2001 From: LarsBrubaker Date: Mon, 15 Feb 2021 19:31:07 -0800 Subject: [PATCH] adding my other path --- Program.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index 90f04913e..cd521c096 100644 --- a/Program.cs +++ b/Program.cs @@ -99,8 +99,18 @@ namespace MatterHackers.MatterControl Debug.WriteLine(message); } - test.ReadFile(@"C:\Users\LarsBrubaker\Downloads\10mm-benchy.photon", Progress); - test.SaveFile(@"C:\Users\LarsBrubaker\Downloads\10mm-bench2.photon"); + var sourceFile = @"C:\Users\LarsBrubaker\Downloads\10mm-benchy.photon"; + if (File.Exists(sourceFile)) + { + test.ReadFile(sourceFile, Progress); + test.SaveFile(@"C:\Users\LarsBrubaker\Downloads\10mm-bench2.photon"); + } + else + { + sourceFile = @"C:\Users\larsb\Downloads\_rocktopus.ctb"; + test.ReadFile(sourceFile, Progress); + test.SaveFile(@"C:\Users\larsb\Downloads\_rocktopus.photon"); + } #endif // Set the global culture for the app, current thread and all new threads