2025年2月28日

摘要: DirectoryEntry adRoot1 = new DirectoryEntry("LDAP://具体的域", account, pwd, AuthenticationTypes.Secure); DirectoryEntry ou = adRoot1.Children.Find("OU=CS 阅读全文
posted @ 2025-02-28 15:45 炼金师 阅读(2) 评论(0) 推荐(0) 编辑

2025年2月8日

摘要: 需要先在nuget上搜索并安装 MySql.Data 包 using MySql.Data.MySqlClient; using System; using System.Collections.Generic; using System.Data; public class DBUtil { pr 阅读全文
posted @ 2025-02-08 15:16 炼金师 阅读(3) 评论(0) 推荐(0) 编辑

2024年3月5日

摘要: using System; using System.Runtime.InteropServices; // public delegate void SaveImg(Pick Pick1); /// <summary> /// 一个控制摄像头的类 /// </summary> public cla 阅读全文
posted @ 2024-03-05 15:43 炼金师 阅读(26) 评论(0) 推荐(0) 编辑

2023年9月27日

摘要: 网上找了好久的代码,结合微软的文档和网上代码总结下来这个工具类(对邮件的附件的操作暂时没有写,以后用到了再补上) 前置条件: 工具 -> NuGet包管理器 -> 管理解决方案的NuGet包管理器,选浏览,然后搜索 Microsoft.Exchange.WebServices.Data 期间我报错过 阅读全文
posted @ 2023-09-27 10:23 炼金师 阅读(248) 评论(0) 推荐(0) 编辑

2023年9月1日

摘要: --假设我要更新tableA表的emp_id和tableB表的emp_id,条件是tableA的emp_id和tableB的emp_no相等,那么写法如下 update tableA a set a.emp_id = (select b.emp_id from tableB b where b.em 阅读全文
posted @ 2023-09-01 15:54 炼金师 阅读(235) 评论(0) 推荐(0) 编辑

2023年7月21日

摘要: 把进程里面的"rdpclip"(也可能叫"RDP剪切板监控程序")这个进程关闭重新启动 win + R 打开运行界面,然后输入 "rdpclip.exe" 重启服务 阅读全文
posted @ 2023-07-21 10:07 炼金师 阅读(116) 评论(0) 推荐(0) 编辑

2023年3月15日

摘要: findstr.exe /s /i "搜索字符串" *.* cmd框里面cd到某目录下运行上面这段话就好了,在项目很多的时候,知道某个项目肯定包含某段字符串的时候,一个一个项目找很麻烦,这样找就方便多了。 阅读全文
posted @ 2023-03-15 13:08 炼金师 阅读(50) 评论(0) 推荐(0) 编辑

2023年1月9日

摘要: 假设一张表叫tableA,里面有很多重复字段sn,创建时间create_time,如果想查最新数据的sn的话,用distinct是不想的,因为时间不同也算不同所以要换一种方法 select temp.sn, temp.create_time, temp.row_flg from ( select s 阅读全文
posted @ 2023-01-09 15:04 炼金师 阅读(1117) 评论(0) 推荐(0) 编辑

2022年10月24日

摘要: 比较闲,看了网上的思路后写了一个玩玩 public class MapManager { private int mapMaxRow = 0; private int mapMaxCol = 0; private int[,] mapInfo; //终点坐标 private int finalRow 阅读全文
posted @ 2022-10-24 14:04 炼金师 阅读(18) 评论(0) 推荐(0) 编辑

2022年9月29日

摘要: 效果图: 代码: private void Window_Loaded(object sender, RoutedEventArgs e) { //横向滑条禁用,如果想横着拉就就竖向禁用、横向启用 m_scroller.HorizontalScrollBarVisibility = ScrollBa 阅读全文
posted @ 2022-09-29 14:20 炼金师 阅读(262) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示