01 2024 档案

摘要:/// <summary> /// PLC处理器 /// </summary> public interface IPlcHandler { void Request(IPlcContext context); } /// <summary> /// PLC的数据上下文 /// </summary> 阅读全文
posted @ 2024-01-23 20:32 孤沉 阅读(24) 评论(0) 推荐(0)
摘要:上位机使用Hsl框架连接PLC 顺便讲下策略模式 话不多说,直接上代码 public interface IPlcHost { bool ConnectionPlc(string path); } public class FastPlcHost : IPlcHost { private Sieme 阅读全文
posted @ 2024-01-20 13:28 孤沉 阅读(70) 评论(0) 推荐(0)
摘要:1、现在我介绍一个类库NewLife,非常流批 先介绍它读取json吧 WPF前台随便绑定一下 <TextBlock Text="{Binding ArticleText}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSi 阅读全文
posted @ 2024-01-17 00:07 孤沉 阅读(47) 评论(0) 推荐(0)
摘要:1、最简单的使用 public class DatabaseService { private static readonly Lazy<SqlSugarClient> _db = new Lazy<SqlSugarClient>(() => { var db = new SqlSugarClien 阅读全文
posted @ 2024-01-15 02:49 孤沉 阅读(608) 评论(2) 推荐(0)