摘要: 1.在主项目中安装 Velopack NuGet 包:Install the Velopack NuGet Package in your main project: dotnet add package Velopack 2.在以下开头配置 Velopack 应用程序:Program.Main 需 阅读全文
posted @ 2024-05-24 10:52 -Timosthetic 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 使用到日志接收器的接口 ILogEventSink WPF+Prsim+Serilog 详细介绍链接 https://github.com/serilog/serilog/wiki/Developing-a-sink public class LogItem { public DateTime Ti 阅读全文
posted @ 2024-05-22 11:02 -Timosthetic 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 在使用serilog.sinks.richtextbox 显示日志时,会需要移除旧的日志信息的需求,实现打码如下; 根据换行符“\n” 进行判断; private void CheckAndRemoveText() { int newLineCount = 0; bool removeText = 阅读全文
posted @ 2024-03-11 15:31 -Timosthetic 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 效果展示: <DataGrid Grid.Row="1" Margin="20" Background="#05034C" BorderBrush="White" BorderThickness="0,1,1,0" CanUserSortColumns="False" ColumnWidth="*" 阅读全文
posted @ 2024-03-07 11:18 -Timosthetic 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 效果展示 WPF: <Border Width="100" Height="30" BorderBrush="Black" BorderThickness="1"> <Canvas ClipToBounds="True"> <TextBlock Text="Hello World" Vertical 阅读全文
posted @ 2024-03-07 10:48 -Timosthetic 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1.AsyncLocal .NET AsyncLocal 避坑指南 - 知乎 (zhihu.com) 2.ManualResetEvent Waitone 3.Stopwatch 阅读全文
posted @ 2023-09-07 08:41 -Timosthetic 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 上位机开发过程中,需要获取设备的所有报警,但是欧姆龙,汇川 plc读取大量的bool数组是极其不方便的 一般plc端提供的是Word数组,这时候就需要在上位机上进行拆分。 /// <summary> /// 将Word类型转化成bit位数组 操作与PLc的报警位 标准操作 /// </summary 阅读全文
posted @ 2022-03-21 17:02 -Timosthetic 阅读(2049) 评论(0) 推荐(0) 编辑
摘要: MaxHeight="{Binding Path=ActualHeight, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UserControl}}" 阅读全文
posted @ 2022-03-18 15:06 -Timosthetic 阅读(817) 评论(1) 推荐(0) 编辑