摘要: NodifyEditor 类 NodifyEditor 是 Nodify 框架的核心控件,它管理节点、连接和交互: 视口控制 ViewportLocation:视口位置 ViewportZoom:视口缩放级别 MinViewportZoom/MaxViewportZoom:缩放限制 Viewport 阅读全文
posted @ 2025-05-14 17:02 -Timosthetic 阅读(253) 评论(0) 推荐(0)
摘要: 非API的方式获取ELSA内置的所有节点 使用 Elsa.Workflows.Management 库 // Setup service container. var services = new ServiceCollection(); // Add Elsa services. services 阅读全文
posted @ 2025-04-10 15:32 -Timosthetic 阅读(18) 评论(0) 推荐(0)
摘要: 为工序添加工位的一种方式, 优点; 1.当一个工序添加完所需要的工位,他是自动排序的。 2.当产品执行流转逻辑时,对工位的状态更新更加方便 [Flags] public enum Workstation { None = 0, // 无工位 OP01 = 1, // 工位 1 (二进制: 00000 阅读全文
posted @ 2025-03-04 11:04 -Timosthetic 阅读(10) 评论(0) 推荐(0)
摘要: 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 阅读(551) 评论(0) 推荐(1)
摘要: 使用到日志接收器的接口 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 阅读(512) 评论(0) 推荐(0)
摘要: 在使用serilog.sinks.richtextbox 显示日志时,会需要移除旧的日志信息的需求,实现打码如下; 根据换行符“\n” 进行判断; private void CheckAndRemoveText() { int newLineCount = 0; bool removeText = 阅读全文
posted @ 2024-03-11 15:31 -Timosthetic 阅读(497) 评论(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 阅读(708) 评论(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 阅读(477) 评论(0) 推荐(1)
摘要: 1.AsyncLocal .NET AsyncLocal 避坑指南 - 知乎 (zhihu.com) 2.ManualResetEvent Waitone 3.Stopwatch 阅读全文
posted @ 2023-09-07 08:41 -Timosthetic 阅读(5) 评论(0) 推荐(0)
摘要: 上位机开发过程中,需要获取设备的所有报警,但是欧姆龙,汇川 plc读取大量的bool数组是极其不方便的 一般plc端提供的是Word数组,这时候就需要在上位机上进行拆分。 /// <summary> /// 将Word类型转化成bit位数组 操作与PLc的报警位 标准操作 /// </summary 阅读全文
posted @ 2022-03-21 17:02 -Timosthetic 阅读(2547) 评论(0) 推荐(0)