diff --git a/App.config b/PtouchPrintSenderApp/App.config similarity index 100% rename from App.config rename to PtouchPrintSenderApp/App.config diff --git a/Application.cs b/PtouchPrintSenderApp/Application.cs similarity index 95% rename from Application.cs rename to PtouchPrintSenderApp/Application.cs index e05686c..f7c9090 100644 --- a/Application.cs +++ b/PtouchPrintSenderApp/Application.cs @@ -50,6 +50,8 @@ private void Print(string filepath, bool dryrun) // ドキュメントオブジェクトを初期化 var document = new BrotherPrinterDocument(); + int recordCount = 0; + try { // テンプレートファイルにアタッチ @@ -95,10 +97,15 @@ private void Print(string filepath, bool dryrun) // 印刷 MyLogger.Info("(印字中)"); document.Print(fields); + + recordCount++; } } finally { + // 結果件数を表示 + MyLogger.Info("印刷が完了しました。処理件数: [", recordCount, "件]"); + MyLogger.Info("ドキュメントをクローズしています..."); document.Close(); } diff --git a/BrotherPrinterDocument.cs b/PtouchPrintSenderApp/BrotherPrinterDocument.cs similarity index 100% rename from BrotherPrinterDocument.cs rename to PtouchPrintSenderApp/BrotherPrinterDocument.cs diff --git a/ConfigurationManager.cs b/PtouchPrintSenderApp/ConfigurationManager.cs similarity index 100% rename from ConfigurationManager.cs rename to PtouchPrintSenderApp/ConfigurationManager.cs diff --git a/MyLogger.cs b/PtouchPrintSenderApp/MyLogger.cs similarity index 100% rename from MyLogger.cs rename to PtouchPrintSenderApp/MyLogger.cs diff --git a/Program.cs b/PtouchPrintSenderApp/Program.cs similarity index 100% rename from Program.cs rename to PtouchPrintSenderApp/Program.cs diff --git a/Properties/AssemblyInfo.cs b/PtouchPrintSenderApp/Properties/AssemblyInfo.cs similarity index 100% rename from Properties/AssemblyInfo.cs rename to PtouchPrintSenderApp/Properties/AssemblyInfo.cs diff --git a/PtouchPrintSender.csproj b/PtouchPrintSenderApp/PtouchPrintSender.csproj similarity index 100% rename from PtouchPrintSender.csproj rename to PtouchPrintSenderApp/PtouchPrintSender.csproj diff --git a/PtouchPrintSender.sln b/PtouchPrintSenderApp/PtouchPrintSender.sln similarity index 100% rename from PtouchPrintSender.sln rename to PtouchPrintSenderApp/PtouchPrintSender.sln diff --git a/StringUtility.cs b/PtouchPrintSenderApp/StringUtility.cs similarity index 100% rename from StringUtility.cs rename to PtouchPrintSenderApp/StringUtility.cs