From 9a2d9532cdb16b210fefb16d8f45f777518ecaac Mon Sep 17 00:00:00 2001 From: czw <selecti@yeah.net> Date: 星期三, 02 七月 2025 13:35:11 +0800 Subject: [PATCH] 1 --- 2025年6月12日/AuxAllWCS/Build/Project/代码/VS自定义类/AutoThread.cs | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 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/AutoThread.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/AutoThread.cs" index 7ab5f45..8dc0006 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/AutoThread.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/AutoThread.cs" @@ -21,6 +21,7 @@ using static System.Runtime.CompilerServices.RuntimeHelpers; using ServiceStack.Configuration; using ServiceStack; +using Spectre.Console; namespace GZ.Projects.AuxAllWCS { @@ -116,6 +117,17 @@ tag.Global.SettingsOver = 1; Console.Clear(); } + } + + public string WriteLine(string value = "") + { + + + + + // 鍦ㄨ繖閲屾嫤鎴鐞嗚緭鍑�+ string intercepted = $"[鎷︽埅鍒扮殑杈撳嚭] {value}"; + return intercepted; } /// <summary> @@ -1539,8 +1551,14 @@ } public void Thread2030Down(Tag tag) { + Console.WriteLine($"SA2030 浠诲姟鐘舵�锛� =====>"); Console.WriteLine($"SA2030 浠诲姟鐘舵�锛歿tag.SA2030.RtaskState}- 绌洪棽{tag.SA2030.R5绌洪棽} - barcode:{tag.SA2030.R鎵樼洏鐮亇"); + + + AnsiConsole.Markup("[underline red]Hello[/] World!"); + + } public void ResolveMesTask() -- Gitblit v1.9.1