1
czw
2025-07-02 f156f02ad009105233eadfedb28938747c60cdc9
2025Äê6ÔÂ12ÈÕ/AuxAllWCS/Build/Project/´úÂë/VS×Ô¶¨ÒåÀà/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);
        }
    }