摘要: 关键操作,使方法OnInitialized 进行 异步 async void OnInitialized() app using FullApp2sfTreeDg.Modules.ModuleName; using FullApp2sfTreeDg.Modules.ModuleName.ViewMo 阅读全文
posted @ 2025-06-11 18:22 JohnnyLei 阅读(7) 评论(0) 推荐(0)
摘要: 关键操作,使方法OnInitialized 进行 异步App using FullApp2sfTreeDg.Modules.ModuleName; using FullApp2sfTreeDg.Modules.ModuleName.ViewModels; using FullApp2sfTreeDg 阅读全文
posted @ 2025-06-11 18:08 JohnnyLei 阅读(3) 评论(0) 推荐(0)
摘要: .关键操作,使方法OnStartup进行 异步 App using System.Configuration; using System.Data; using System.Windows; namespace WpfApp1 { /// <summary> /// Interaction log 阅读全文
posted @ 2025-06-11 14:17 JohnnyLei 阅读(5) 评论(0) 推荐(0)
摘要: nuget 安装 hslcommunication Install-Package HslCommunication -Version 12.3.2 客户端 连接cip 服务器 HslCommunication.Profinet.Omron.OmronCipNet plc = new HslComm 阅读全文
posted @ 2025-06-11 09:19 JohnnyLei 阅读(34) 评论(0) 推荐(0)
摘要: Assembly.LoadFile 无法获取自定义的Attribute特性 调用失败原因 根本原因是对Assembly.LoadFile的调用。此方法总是将指定的程序集加载到自己的AssemblyLoadContext中。(有关程序集加载上下文的更多信息)。 这意味着将程序集加载到LoadFile加 阅读全文
posted @ 2025-06-09 16:37 JohnnyLei 阅读(3) 评论(0) 推荐(0)
摘要: 在nuget包里面有对应的包,下载对应的nuget包 安装这个nuget包,之后在xaml文件中添加引用命名空间 xmlns:fa="http://schemas.fontawesome.io/icons/" 使用的时候,可以使用单独使用,也可以在其他控件上使用 单独使用: <fa:FontAwes 阅读全文
posted @ 2025-06-07 09:40 JohnnyLei 阅读(23) 评论(0) 推荐(0)
摘要: 原方式 <TreeView Grid.Row="1" Grid.Column="0" ItemsSource="{Binding PermissionsDtos}" > <TreeView.ItemTemplate > <HierarchicalDataTemplate ItemsSource="{ 阅读全文
posted @ 2025-06-07 09:25 JohnnyLei 阅读(5) 评论(0) 推荐(0)
摘要: 1、查看官方文档 https://kvaser.com/canlib-webhelp/section_install_windows.html 2、安装can windows驱动 https://www.kvaser.com/downloads-kvaser/?utm_source=software 阅读全文
posted @ 2024-09-08 09:44 JohnnyLei 阅读(423) 评论(0) 推荐(0)
摘要: 1、halcon导出函数 *读取图片 read_image (Image, 'C:/Users/admin/Desktop/halcondemo1/claudia.png') get_image_size (Image, Width, Height) dev_close_window () dev_ 阅读全文
posted @ 2024-06-30 16:26 JohnnyLei 阅读(187) 评论(0) 推荐(1)
摘要: 1、nuget安装HalconDotNet包 2、报错 System.Drawing.Common问题 nuget安装包 System.Drawing.Common 3、wpf使用halcondotnet.dll 程序集 <UserControl x:Class="HalconDemoTest.Mo 阅读全文
posted @ 2024-06-30 15:53 JohnnyLei 阅读(138) 评论(0) 推荐(0)
摘要: 故障显示 System.AggregateException:“One or more errors occurred. (The 'applicationUrl' setting must be an https address unless the 'ASPIRE_ALLOW_UNSECURED 阅读全文
posted @ 2024-06-11 11:05 JohnnyLei 阅读(311) 评论(0) 推荐(1)
摘要: 1、设置声音文件的输出 2、编译检测目录的文件 3、安装 NAudio GitHub - naudio/NAudio: Audio and MIDI library for .NET dotnet add package NAudio --version 2.2.1 4、封装类文件 using NA 阅读全文
posted @ 2024-05-25 13:37 JohnnyLei 阅读(394) 评论(0) 推荐(0)
摘要: 1、nuget安装库 2、视频设置 3、xaml <UserControl x:Class="WpfApp4TestVLC.View.HomeView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x 阅读全文
posted @ 2024-05-23 10:55 JohnnyLei 阅读(432) 评论(0) 推荐(0)
摘要: 1、打开.NET Reactor V6.8.0.0 2、选择dll混淆 3、拖入dll 4、执行加密混淆 5、打开dll同级下的_Secure结尾的文件夹,里面有混淆后的dll 6、将两个加密混淆后的文件 进行覆盖到原来的dll 7、使用dotpeek反编译查看加密混淆后的dll ,混淆是完成的。。 阅读全文
posted @ 2024-05-16 16:02 JohnnyLei 阅读(394) 评论(0) 推荐(0)
摘要: Modbus字节序说明 用littly endine byte swap 解析寄存器 最近做ModBus TCP方面的测试有点多,尽管对于ModBus协议算是比较了解了,也经常知道字节传输序列的不同对工程师带来了很多不必要的麻烦,这不是一个技术难题,仅仅只是过去各家各户开发遗留下来的标准统一问题,所 阅读全文
posted @ 2024-05-08 15:54 JohnnyLei 阅读(2409) 评论(0) 推荐(0)
摘要: 准备拼接文件 里面放的是需要拼接视频文件的路径 concat_list.txt 准备代码 private void CombineFile(string filesDir, string targetmp4fileName) { string basedir = AppDomain.CurrentD 阅读全文
posted @ 2024-04-20 15:29 JohnnyLei 阅读(269) 评论(0) 推荐(0)
摘要: 文件需要: 1、m3u8文件 32225.m3u8 2、key文件 88d73ccaf175e3ff.ts 3、加密后无法观看的ts视频文件 322251.ts 代码1: try { //1 获取m3u8中的iv信息 string m3u8encodeKeyContent = File.ReadAl 阅读全文
posted @ 2024-04-20 14:54 JohnnyLei 阅读(426) 评论(0) 推荐(0)
摘要: 使用vmprotect 对Aot发布后的exe 进行加密混淆 使用的visual studio 2022 版本: 1、发布aot <!--加入条件开启vs .net8的axmal的预览--> <PublishAot Condition="'$(Configuration)' == 'Release' 阅读全文
posted @ 2024-04-17 14:55 JohnnyLei 阅读(1924) 评论(0) 推荐(3)
摘要: 代码 App.xaml.cs protected override void OnStartup(StartupEventArgs e) { //新增内存回收 this.MemoryHelper(); } private void MemoryHelper(int second = 30) { Th 阅读全文
posted @ 2024-01-19 16:57 JohnnyLei 阅读(191) 评论(0) 推荐(0)
摘要: 安装包 CS-Script.Core 编写脚本 工艺文件1.txt using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; 阅读全文
posted @ 2023-12-12 16:10 JohnnyLei 阅读(225) 评论(0) 推荐(0)