From f156f02ad009105233eadfedb28938747c60cdc9 Mon Sep 17 00:00:00 2001
From: czw <selecti@yeah.net>
Date: 星期三, 02 七月 2025 13:04:27 +0800
Subject: [PATCH] 1

---
 2025年6月12日/AuxAllWCS/Build/Project/代码/VS自定义类/ConsoleInterceptor.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/ConsoleInterceptor.cs" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/ConsoleInterceptor.cs"
index 1e9ba84..3b1aed2 100644
--- "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/ConsoleInterceptor.cs"
+++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/ConsoleInterceptor.cs"
@@ -4,6 +4,7 @@
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
+using static System.Windows.Forms.VisualStyles.VisualStyleElement;
 
 namespace GZ.Projects.AuxAllWCS
 {
@@ -21,11 +22,10 @@
 
         public override void WriteLine(string value = "")
         {
-            // 鍦ㄨ繖閲屾嫤鎴鐞嗚緭鍑�-            //string intercepted = $"[鎷︽埅鍒扮殑杈撳嚭] {value}";
-
+            string values = (string)AutoThread.InvokeMethod(AutoThread.Instance, "WriteLine", new object[] { value });
             //// 鍙互閫夋嫨缁х画杈撳嚭鍒板師鎺у埗鍙�-            //_originalOut.WriteLine(intercepted);
+            if (!string.IsNullOrEmpty(values))
+                _originalOut.WriteLine(values);
         }
 
     }

--
Gitblit v1.9.1