会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
0x0c,0x0d
Write The CODE,Change The World!
首页
新随笔
联系
管理
上一页
1
2
3
4
5
6
7
8
9
···
47
下一页
2025年3月1日
c# 获取设备列表
摘要: NAudio var enumerator = new MMDeviceEnumerator(); var devices = enumerator.EnumerateAudioEndPoints(DataFlow.Capture, DeviceState.All); foreach (var de
阅读全文
posted @ 2025-03-01 17:33 Hey,Coder!
阅读(118)
评论(0)
推荐(0)
2025年2月25日
c# wpf inkcanvas 模拟笔锋
摘要: 通过自定义变换,使用此方法画笔擦除模式为EraseByPoint时无法按点擦除(可以考虑第二种方案) <InkCanvas x:Name="inkCanvas" Background="White" > <InkCanvas.DefaultDrawingAttributes> <!--<Drawin
阅读全文
posted @ 2025-02-25 23:02 Hey,Coder!
阅读(53)
评论(0)
推荐(0)
c# 调整CultureInfo 全局修改时间格式
摘要: // 克隆一个现有的文化 CultureInfo customCulture = (CultureInfo)CultureInfo.GetCultureInfo("zh-CN").Clone(); // 修改时间显示格式 customCulture.DateTimeFormat.ShortDateP
阅读全文
posted @ 2025-02-25 10:20 Hey,Coder!
阅读(49)
评论(0)
推荐(0)
2025年2月23日
inkcanvas根据鼠标、触摸的时长自动调整笔迹粗细
摘要: 前台 <Window x:Class="FinalTest.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winf
阅读全文
posted @ 2025-02-23 21:33 Hey,Coder!
阅读(50)
评论(0)
推荐(0)
2025年2月22日
Radialix 汉化
摘要: 配置属性如下 直接翻译文本即可
阅读全文
posted @ 2025-02-22 00:57 Hey,Coder!
阅读(59)
评论(0)
推荐(0)
2025年2月11日
c# 调用 surfer
摘要: 引用surfer安装后自动添加的com组件 代码调用 using Surfer; Application app = new Application(); var path = AppDomain.CurrentDomain.BaseDirectory; app.GridData2(DataFile
阅读全文
posted @ 2025-02-11 16:02 Hey,Coder!
阅读(115)
评论(0)
推荐(0)
2025年1月15日
c# 自动识别文件编码
摘要: 安装nuget【Ude.NetStandard】 using (FileStream fs = File.OpenRead(ParseFilePath)) { Ude.CharsetDetector cdet = new Ude.CharsetDetector(); cdet.Feed(fs); c
阅读全文
posted @ 2025-01-15 17:40 Hey,Coder!
阅读(168)
评论(0)
推荐(0)
2025年1月2日
c# wpf 宿主 webapi
摘要: 创建两个项目,wpf、webapi 将webapi项目输出类型设置为类库 在wpf中引用webapi wpf中启动 Host.CreateDefaultBuilder(new string[]{ "--urls", "http://localhost:8888", }) .ConfigureWebH
阅读全文
posted @ 2025-01-02 18:40 Hey,Coder!
阅读(140)
评论(0)
推荐(0)
2024年12月11日
linux 配置管理员权限
摘要: vim /etc/sudoers ## 添加管理员权限 testuser ALL=(ALL) PASSWD:ALL 配置命令无需输入sudo # /etc/sudoers中添加 testuser ALL=NOPASSWD:/usr/bin/nmcli
阅读全文
posted @ 2024-12-11 15:23 Hey,Coder!
阅读(47)
评论(0)
推荐(0)
2024年11月29日
webview2抓取返回数据
摘要: webview2设置过滤器 //进行网址过滤 //webView.CoreWebView2.AddWebResourceRequestedFilter("http://test.com:8080/xx", CoreWebView2WebResourceContext.All); webView.Co
阅读全文
posted @ 2024-11-29 19:43 Hey,Coder!
阅读(517)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
47
下一页
公告