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

---
 2025年6月12日/AuxAllWCS/Scripts/Custom.json |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Scripts/Custom.json" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Scripts/Custom.json"
index 1837d54..6e7222a 100644
--- "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Scripts/Custom.json"
+++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Scripts/Custom.json"
@@ -689,9 +689,30 @@
         "InheritClass": "",
         "Inherits": []
       }
+    },
+    {
+      "ID": "20250702112833751",
+      "Name": "ConsoleInterceptor",
+      "Desc": "",
+      "ParentID": "",
+      "Type": "ClassCode",
+      "Level": "Item",
+      "Statement": "public class ConsoleInterceptor:TextWriter",
+      "EditCode": "private readonly TextWriter _originalOut;\r\n\r\npublic ConsoleInterceptor()\r\n{\r\n    _originalOut = Console.Out;\r\n}\r\n\r\npublic override Encoding Encoding => Encoding.UTF8;\r\n\r\npublic override void WriteLine(string value = \"\")\r\n{\r\n    string values = (string)AutoThread.InvokeMethod(AutoThread.Instance, \"WriteLine\", new object[] { value });\r\n    //// 鍙互閫夋嫨缁х画杈撳嚭鍒板師鎺у埗鍙癨r\n    if (!string.IsNullOrEmpty(values))\r\n        _originalOut.WriteLine(values);\r\n}",
+      "Code": "public class ConsoleInterceptor:TextWriter\r\n{private readonly TextWriter _originalOut;\r\n\r\npublic ConsoleInterceptor()\r\n{\r\n    _originalOut = Console.Out;\r\n}\r\n\r\npublic override Encoding Encoding => Encoding.UTF8;\r\n\r\npublic override void WriteLine(string value = \"\")\r\n{\r\n    string values = (string)AutoThread.InvokeMethod(AutoThread.Instance, \"WriteLine\", new object[] { value });\r\n    //// 鍙互閫夋嫨缁х画杈撳嚭鍒板師鎺у埗鍙癨r\n    if (!string.IsNullOrEmpty(values))\r\n        _originalOut.WriteLine(values);\r\n}\r\n}",
+      "CusMethod": {
+        "Name": "",
+        "Params": [],
+        "ReturnType": ""
+      },
+      "CusClass": {
+        "Name": "ConsoleInterceptor",
+        "InheritClass": "TextWriter",
+        "Inherits": []
+      }
     }
   ],
   "CreationTime": "2025-02-26 15:31:23",
-  "LastWriteTime": "2025-06-30 11:27:51",
+  "LastWriteTime": "2025-07-02 13:15:08",
   "HasSaved": true
 }
\ No newline at end of file

--
Gitblit v1.9.1