摘要: 用了很久的水晶报表,最近经常遇到客户电脑上无法安装水晶报表,只能重装系统解决。决定用最原始的 GDI 绘图来打印报表。 using MySql.Data.MySqlClient; using Newtonsoft.Json; using System; using System.Collection 阅读全文
posted @ 2020-07-31 11:30 echo三毛 阅读(655) 评论(0) 推荐(0) 编辑
摘要: 批处理相关文章: 发布QT程序:https://www.cnblogs.com/aitong/p/11623705.html svn拉取,vs编译,dotfuscator混淆https://www.cnblogs.com/aitong/p/10627930.html 先将目录中的文件压缩(格式为 e 阅读全文
posted @ 2020-04-15 15:57 echo三毛 阅读(696) 评论(0) 推荐(0) 编辑
摘要: 最近看到一篇关于 开放/封闭原则 的文章:https://blog.csdn.net/weixin_30872337/article/details/98280838 可惜文章里的代码无法运行,所以改写了部分代码,记录下来。 下文采用了策略模式来满足 开放/封闭原则 。 using System; 阅读全文
posted @ 2020-03-18 17:37 echo三毛 阅读(378) 评论(0) 推荐(0) 编辑
摘要: c# 下的代码:https://www.cnblogs.com/aitong/p/10973774.html <?php class People { public $id; public $partnerid; public $satisfaction; public $reqArray; fun 阅读全文
posted @ 2020-02-19 17:13 echo三毛 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 在 Mysql 的 information_schema 库中 COLUMNS 表中存放了所有表的所有列。 using MySql.Data.MySqlClient; using System; using System.Collections.Generic; using System.Linq; 阅读全文
posted @ 2019-12-11 13:44 echo三毛 阅读(1511) 评论(0) 推荐(0) 编辑
摘要: 方法1. 在c#中定义byte[], 交给c++操作 extern "C" __declspec(dllexport) void HelloWorld(char* name) { name[0] = 'c'; } [DllImport("kernel32.dll", CharSet = CharSe 阅读全文
posted @ 2019-11-27 23:49 echo三毛 阅读(713) 评论(0) 推荐(0) 编辑
摘要: private void Dg_SelectedCellsChanged(object sender, SelectedCellsChangedEventArgs e) { Console.WriteLine("start"); foreach (DataGridCellInfo info in d 阅读全文
posted @ 2019-11-14 17:03 echo三毛 阅读(5680) 评论(0) 推荐(1) 编辑
摘要: 阿里巴巴矢量图标库提供了大量的 SVG 图标:https://www.iconfont.cn/ 但是 WPF 本身不支持 SVG 格式的文件。 方法一:如果对图片的颜色没有要求,那么可以在下载图片时选择:复制 SVG ,然后将文本中的 Path 路径提取出来,多个路径之间用空格隔开。这种方法只能调节 阅读全文
posted @ 2019-10-31 19:41 echo三毛 阅读(10509) 评论(5) 推荐(3) 编辑
摘要: C# 的 Http 访问可以使用 .net 自带的 HttpWebRequest, WebClient, HttpClient 类。也可以使用开源库 RestSharp 。 RestSharp 的优点很多,最重要的一点是对于新手来说,Postman 直接提供了 RestSharp 的实现代码。 下面 阅读全文
posted @ 2019-10-10 15:42 echo三毛 阅读(4864) 评论(0) 推荐(1) 编辑
摘要: 与 IIS 上发布网站相比,使用 HttpListener 编程的程序更加轻量化,易于发布和更新。配合 Thread 或 Task 类也可满足一定的并发。 https://docs.microsoft.com/zh-cn/dotnet/api/system.net.httplistener?view 阅读全文
posted @ 2019-10-09 15:33 echo三毛 阅读(5935) 评论(0) 推荐(2) 编辑