From 75aec1eebb64d56e6067e9d1f5266dc0a366ccdc Mon Sep 17 00:00:00 2001 From: tsuji Date: Wed, 21 Sep 2022 17:38:27 +0900 Subject: [PATCH] =?UTF-8?q?=E6=A4=9C=E7=89=88=E5=AE=9F=E8=A1=8C=E4=B8=AD?= =?UTF-8?q?=E3=81=AE=E3=82=AD=E3=83=A3=E3=83=B3=E3=82=BB=E3=83=AB=E5=87=A6?= =?UTF-8?q?=E7=90=86=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gui/Code/CSRender/CSRender/CompareTIFF.cs | 3 +- .../Code/CSRender/CSRender/FilePathSelect.cs | 20 + .../Code/CSRender/CSRender/MainWindow.xaml | 11 +- .../Code/CSRender/CSRender/MainWindow.xaml.cs | 549 ++++++++++++------ root/gui/Code/CSRender/CSRender/OurputTIFF.cs | 151 +++-- 5 files changed, 512 insertions(+), 222 deletions(-) diff --git a/root/gui/Code/CSRender/CSRender/CompareTIFF.cs b/root/gui/Code/CSRender/CSRender/CompareTIFF.cs index c3de7b4..f8c1222 100644 --- a/root/gui/Code/CSRender/CSRender/CompareTIFF.cs +++ b/root/gui/Code/CSRender/CSRender/CompareTIFF.cs @@ -146,7 +146,8 @@ namespace CSRender //指定先にレポートを移動 internal static void moveReport(string resultPath, string workPath) { - string reportPath = System.IO.Path.Combine(resultPath, "report", "Log"); + //string reportPath = System.IO.Path.Combine(resultPath, "report", "Log"); + string reportPath = System.IO.Path.Combine(resultPath, "Log"); if (!Directory.Exists(reportPath))//指定先にreportフォルダがあるか { Directory.CreateDirectory(reportPath);//なければ新規でreportフォルダを作成 diff --git a/root/gui/Code/CSRender/CSRender/FilePathSelect.cs b/root/gui/Code/CSRender/CSRender/FilePathSelect.cs index a7ed9ef..8f05769 100644 --- a/root/gui/Code/CSRender/CSRender/FilePathSelect.cs +++ b/root/gui/Code/CSRender/CSRender/FilePathSelect.cs @@ -338,5 +338,25 @@ namespace CSRender Directory.CreateDirectory(inDirPath);//同名のディレクトリを作成 } + //キャンセルが実行されたときに、途中で生成したファイル群を削除 + private void DelDirCancel(string inWorkPath) + { + try + { + if (Directory.Exists(System.IO.Path.Combine(inWorkPath, "OUT_DIFF"))) + { + Directory.Delete(System.IO.Path.Combine(inWorkPath, "OUT_DIFF"), true);//OUT_DIFFを削除 + } + if (Directory.Exists(System.IO.Path.Combine(inWorkPath, "work"))) + { + Directory.Delete(System.IO.Path.Combine(inWorkPath, "work"), true);//作業(work)ディレクトリを削除 + } + } + catch(Exception ex) + { + return; + } + + } } } diff --git a/root/gui/Code/CSRender/CSRender/MainWindow.xaml b/root/gui/Code/CSRender/CSRender/MainWindow.xaml index bd9ae72..c4707a4 100644 --- a/root/gui/Code/CSRender/CSRender/MainWindow.xaml +++ b/root/gui/Code/CSRender/CSRender/MainWindow.xaml @@ -62,9 +62,9 @@ -