2025年6月12日/AuxAllWCS/Build/Project/AuxAllWCS.csproj | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
2025年6月12日/AuxAllWCS/Build/Project/代码/VS自定义类/ConsoleInterceptor.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
2025年6月12日/AuxAllWCS/Build/Project/代码/界面事件.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
2025年6月12日/AuxAllWCS/Build/Project/代码/自定义类.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
2025年6月12日/AuxAllWCS/Views/View.json | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
2025年6月12日/AuxAllWCS/Views/View1.xaml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
2025年6月12日/AuxAllWCS/Views/View2.xaml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
2025Äê6ÔÂ12ÈÕ/AuxAllWCS/Build/Project/AuxAllWCS.csproj
@@ -194,6 +194,7 @@ <DependentUpon>App.xaml</DependentUpon> <SubType>Code</SubType> </Compile> <Compile Include="代ç \VSèªå®ä¹ç±»\ConsoleInterceptor.cs" /> <Compile Include="çé¢\View2.xaml.cs"> <DependentUpon>View2.xaml</DependentUpon> </Compile> 2025Äê6ÔÂ12ÈÕ/AuxAllWCS/Build/Project/´úÂë/VS×Ô¶¨ÒåÀà/ConsoleInterceptor.cs
New file @@ -0,0 +1,32 @@ using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GZ.Projects.AuxAllWCS { // å建èªå®ä¹ç TextWriter public class ConsoleInterceptor : TextWriter { private readonly TextWriter _originalOut; public ConsoleInterceptor() { _originalOut = Console.Out; } public override Encoding Encoding => Encoding.UTF8; public override void WriteLine(string value = "") { // å¨è¿éæ¦æªå¤çè¾åº //string intercepted = $"[æ¦æªå°çè¾åº] {value}"; //// å¯ä»¥éæ©ç»§ç»è¾åºå°åæ§å¶å° //_originalOut.WriteLine(intercepted); } } } 2025Äê6ÔÂ12ÈÕ/AuxAllWCS/Build/Project/´úÂë/½çÃæÊ¼þ.cs
@@ -62,10 +62,6 @@ } View1_Init(sender, e); LogHelper.Info($"<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>"); LogHelper.Info($"<<<<<<<<<<<<<<<<<ç¨åºÂ·å¯å¨>>>>>>>>>>>>>>"); LogHelper.Info($"<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>"); /// <summary> /// ç¨åºç段:åå§åé ç½® /// æè¿°: @@ -1056,6 +1052,14 @@ /// <param name="e"></param> public void View1_Init(object sender, RoutedEventArgs e) { LogHelper.Info($"<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>"); LogHelper.Info($"<<<<<<<<<<<<<<<<<ç¨åºÂ·å¯å¨>>>>>>>>>>>>>>"); // ä½¿ç¨æ¦æªå¨ var interceptor = new ConsoleInterceptor(); Console.SetOut(interceptor); LogHelper.Info($"<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>"); } #endregion 2025Äê6ÔÂ12ÈÕ/AuxAllWCS/Build/Project/´úÂë/×Ô¶¨ÒåÀà.cs
@@ -172,11 +172,11 @@ // æ·»å target-console var consoleTarget = new ColoredConsoleTarget(); consoleTarget.Layout = @"${longdate} | ${level:uppercase=false:padding=-5} | ${message} ${onexception:${exception:format=tostring} ${newline} ${stacktrace} ${newline}"; //var consoleTarget = new ColoredConsoleTarget(); //consoleTarget.Layout = @"${longdate} | ${level:uppercase=false:padding=-5} | ${message} ${onexception:${exception:format=tostring} ${newline} ${stacktrace} ${newline}"; config.AddTarget("console", consoleTarget); config.AddRule(LogLevel.Debug, LogLevel.Fatal, consoleTarget); //config.AddTarget("console", consoleTarget); //config.AddRule(LogLevel.Debug, LogLevel.Fatal, consoleTarget); //æ·»å target-info var infoFileTarget = new FileTarget(); 2025Äê6ÔÂ12ÈÕ/AuxAllWCS/Views/View.json
@@ -18,15 +18,7 @@ "Controls": [ { "Name": "", "Type": "Canvas", "FullType": "", "Assembly": "", "Events": [], "Commands": [] }, { "Name": "", "Type": "Label", "Type": "Grid", "FullType": "", "Assembly": "", "Events": [], @@ -44,9 +36,36 @@ "NamedControls": [], "Events": [], "Commands": [] }, { "ID": "20250702102310624", "Name": "View2", "Desc": "", "Directory": "/", "FilePath": "/View2.xaml", "FileName": "View2.xaml", "Content": "", "ParentID": "", "Children": [], "Type": "View", "IsStartup": false, "IsMainForm": false, "Controls": [ { "Name": "", "Type": "Canvas", "FullType": "", "Assembly": "", "Events": [], "Commands": [] } ], "NamedControls": [], "Events": [], "Commands": [] } ], "Layouts": [], "CreationTime": "2025-02-26 15:31:21", "LastWriteTime": "2025-07-02 10:11:01" "LastWriteTime": "2025-07-02 10:54:40" } 2025Äê6ÔÂ12ÈÕ/AuxAllWCS/Views/View1.xaml
@@ -1,102 +1,5 @@ <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="640" Height="480" x:Class="GZ.Projects.AuxAllWCS.View1" xmlns:local="clr-namespace:GZ.Projects.AuxAllWCS"> <Grid> <Grid> <TabControl> <TabControl.Resources> <Style TargetType="TabItem"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="TabItem"> <Border Name="Border" BorderThickness="1,1,1,0" BorderBrush="Gainsboro" CornerRadius="4,4,0,0" Margin="2,0"> <ContentPresenter x:Name="ContentSite" VerticalAlignment="Center" HorizontalAlignment="Center" ContentSource="Header" Margin="10,2"/> </Border> <ControlTemplate.Triggers> <Trigger Property="IsSelected" Value="True"> <Setter TargetName="Border" Property="Background" Value="LightSkyBlue" /> </Trigger> <Trigger Property="IsSelected" Value="False"> <Setter TargetName="Border" Property="Background" Value="GhostWhite" /> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> </TabControl.Resources> <TabItem> <TabItem.Header> <StackPanel Orientation="Horizontal"> <TextBlock Text="emmm" Foreground="Yellow" /> </StackPanel> </TabItem.Header> <TextBlock HorizontalAlignment="Center" FontFamily="Courier New" Text="
 ////////////////////////////////////////////////////////////////////
 // _ooOoo_ //
 // o8888888o //
 // 88' ã '88 //
 // (| ^_^ |) //
 // O\ = /O //
 // ____/`---'\____ //
 // .' \\| |// `. //
 // / \\||| : |||// \ //
 // / _||||| -:- |||||- \ //
 // | | \\\ - /// | | //
 // | \_| ''\---/'' | | //
 // \ .-\__ `-` ___/-. / //
 // ___`. .' /--.--\ `. . ___ //
 // .'' 'ã`.___\_ã|ã_/___.' ã'''. //
 // | | : `- \`.;`\ _ /`;.`/ - ` : | | //
 // \ \ `-. \_ __\ /__ _/ .-` / / //
 // ========`-.____`-.___\_____/___.-`____.-'======== //
 // `=---=' //
 // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ //
 // ä½ç¥ä¿ä½ æ°¸æ BUG æ°¸ä¸ä¿®æ¹ //
 ////////////////////////////////////////////////////////////////////" TextWrapping="Wrap" /> </TabItem> <TabItem> <TabItem.Header> <StackPanel Orientation="Horizontal"> <TextBlock Text="Rgvä»»å¡" Foreground="Purple" /> </StackPanel> </TabItem.Header> <Label Content="Content goes here..." /> </TabItem> <TabItem> <TabItem.Header> <StackPanel Orientation="Horizontal"> <TextBlock Text="AGVä»»å¡" Foreground="Black" /> </StackPanel> </TabItem.Header> <Label Content="Content goes here..." /> </TabItem> <TabItem> <TabItem.Header> <StackPanel Orientation="Horizontal"> <TextBlock Text="壳ä½ä¸æ" Foreground="Blue" /> </StackPanel> </TabItem.Header> <Label Content="Content goes here..." /> </TabItem> <TabItem> <TabItem.Header> <StackPanel Orientation="Horizontal"> <TextBlock Text="æ»è£ 䏿" Foreground="Red" /> </StackPanel> </TabItem.Header> </TabItem> <TabItem> <TabItem.Header> <StackPanel Orientation="Horizontal"> <TextBlock Text="æ«ç 头" Foreground="Green" /> </StackPanel> </TabItem.Header> </TabItem> </TabControl> </Grid> </Grid> <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="640" Height="480" x:Class="GZ.Projects.AuxAllWCS.View1" xmlns:local="clr-namespace:GZ.Projects.AuxAllWCS" xmlns:local1="clr-namespace:GZ.Projects.AuxAllWCS.çé¢" Title="ååwcs"> <Grid> <TextBlock HorizontalAlignment="Center" FontFamily="Courier New" Text="

////////////////////////////////////////////////////////////////////

// _ooOoo_ //

// o8888888o //

// 88' ã '88 //

// (| ^_^ |) //

// O\ = /O //

// ____/`---'\____ //

// .' \\| |// `. //

// / \\||| : |||// \ //

// / _||||| -:- |||||- \ //

// | | \\\ - /// | | //

// | \_| ''\---/'' | | //

// \ .-\__ `-` ___/-. / //

// ___`. .' /--.--\ `. . ___ //

// .'' 'ã`.___\_ã|ã_/___.' ã'''. //

// | | : `- \`.;`\ _ /`;.`/ - ` : | | //

// \ \ `-. \_ __\ /__ _/ .-` / / //

// ========`-.____`-.___\_____/___.-`____.-'======== //

// `=---=' //

// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ //

// ä½ç¥ä¿ä½ æ°¸æ BUG æ°¸ä¸ä¿®æ¹ //

////////////////////////////////////////////////////////////////////" TextWrapping="Wrap" /> </Grid> </Window> 2025Äê6ÔÂ12ÈÕ/AuxAllWCS/Views/View2.xaml
@@ -1,4 +1,3 @@ <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="640" Height="480"> <Canvas /> <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="640" Height="480"> <Canvas /> </Window>