摘要: WPF和WinForm区别 WPF:分辨率自适应,属性binding,有事件路由、命令绑定、数据模板 数据模板等特性,前后分离,可创建样式动画,页面比 WinForm 更炫酷 WinForm:自适应差,label控件不可设置透明背景 区别 WPF WinForm 句柄 整个窗口为一个句柄 窗口中每个 阅读全文
posted @ 2024-03-12 23:02 叫夏洛啊 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 今天客户突然说软件执行模拟功能的时候,不能运行了,在确认完版本和运行环境之后,发现所有场景已经对齐了,始终无法复现问题。 模拟功能是软件调用另一个exe运行程序,根据传入指定的参数,进行相应的功能逻辑。 后面直接通过命令行的防止,传入参数唤起被调用的exe程序,我的机器上可以运行运行,客户机器提示 阅读全文
posted @ 2024-03-08 20:47 叫夏洛啊 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 从地址 https://console.bce.baidu.com/ai/#/ai/intelligentwriting/app/list 创建应用, 然后复制应用的 API Key 和 Secret Key 到下文的 API_KEY_AIGC 和 SECRET_KEY_AIGC import js 阅读全文
posted @ 2024-02-22 14:00 叫夏洛啊 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 一开始使用下面方法调起文件夹窗,始终提示 System.Windows.Forms 这个命名空间无法引入. // 选择文件夹 System.Windows.Forms.FolderBrowserDialog FolderBrowserDialog = new System.Windows.Forms 阅读全文
posted @ 2024-01-17 21:33 叫夏洛啊 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 整理代码块 代码块整理后存储,供后期使用 string ModelValue = "AB|#$CD|#$EFG|#$"; int n = ModelValue.ToString().LastIndexOf("|#$"); ModelValue.Remove(n, 1); string[] strar 阅读全文
posted @ 2023-12-20 21:47 叫夏洛啊 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 整理代码块 代码块整理后存储,供后期使用 结构体序列化与反序列化 using System; using System.Runtime.InteropServices; using System.Text; namespace structTest { /// <summary> /// 结构体序列 阅读全文
posted @ 2023-12-20 21:44 叫夏洛啊 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 整理代码块 代码块整理后存储,供后期使用 计算机蜂鸣 class Program { static void Main(string[] args) { while (true) { Console.WriteLine("please press num \"1\" or \"2\""); int 阅读全文
posted @ 2023-12-20 21:41 叫夏洛啊 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 整理代码块 代码块整理后存储,供后期使用 /// <summary> /// 包含中文 /// </summary> /// <param name="str"></param> /// <returns></returns> public static bool HasChinese(string 阅读全文
posted @ 2023-12-20 21:38 叫夏洛啊 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 各种api接口 https://www.juhe.cn/docs/index/cid/1 http://www.sohu.com/a/197059756_178408 免费数据网站 http://data.stats.gov.cn/ 国家数据中心 绝对给力 阅读全文
posted @ 2023-12-20 21:35 叫夏洛啊 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 整理代码块 代码块整理后存储,供后期使用 C# 获取属性,获取事件逻辑 Control control = Controls.Find("button1", true)[0]; // 获取属性 object o = control.GetType().GetProperty("PropertyNam 阅读全文
posted @ 2023-12-20 21:33 叫夏洛啊 阅读(65) 评论(0) 推荐(0) 编辑