摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 阅读全文
posted @ 2018-06-04 14:20 Jazz_Law 阅读(2438) 评论(2) 推荐(0) 编辑
摘要: /// <summary> /// 深度克隆对象 /// </summary> /// <typeparam name="T"></typeparam> public class TransExpV1<T> { public static T Trans(T t) { dynamic ret = ( 阅读全文
posted @ 2022-05-26 11:26 Jazz_Law 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 出错代码 using (var managementClass = new ManagementClass("Win32_DiskDrive")) { var devices = managementClass.GetInstances(); foreach (var o in devices) { 阅读全文
posted @ 2020-03-20 14:14 Jazz_Law 阅读(2374) 评论(0) 推荐(0) 编辑
摘要: 在工作中,可能会遇到这种情况:由于某些组件是别人开发的,引用了某一个版本的DLL,而另外一个组件引用另一个版本的相同DLL,在做二次开发的时候就需要把这两个DLL都添加进入程序当中 参考:https://blog.csdn.net/lj22377/article/details/84641087 以 阅读全文
posted @ 2020-01-03 08:59 Jazz_Law 阅读(578) 评论(0) 推荐(0) 编辑
摘要: 总结一下最近工作中遇到的关于数据库方面影响整个系统的性能的一些地方: 1、SQLite数据库冷启动之后,首次查询会比较慢,经过一些表面现象验证,看起来是这样子的,没深入研究过他的处理逻辑,此处要参考https://blog.csdn.net/zhuhongshu/article/details/80 阅读全文
posted @ 2020-01-03 08:54 Jazz_Law 阅读(178) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/we0704/article/details/51516709 参照以上。 解决方案中配置自定义控件的项目生成为AnyCPU或者x86。 阅读全文
posted @ 2018-09-30 10:57 Jazz_Law 阅读(417) 评论(0) 推荐(0) 编辑
摘要: 最近项目中有个需求,需要将多张位图拼接成一张整体图,由于机器限制,需要考虑到处理时间。 我采用的处理方式是:按整体图的大小创建一块画布=>将每一张图贴在整体图的指定位置。 贴图的方法采用的 Graphics.DrawImage()中的两个重载: 1、Graphics.DrawImage(Image 阅读全文
posted @ 2018-01-22 10:31 Jazz_Law 阅读(4347) 评论(0) 推荐(0) 编辑
摘要: public void GetFtpFolerSize(ref UInt64 size, string ServerIP, string USERID, string PassWord, string path) { if (path == null) path = ""; FtpWebReques 阅读全文
posted @ 2017-09-28 14:38 Jazz_Law 阅读(835) 评论(0) 推荐(0) 编辑
摘要: 今天早上运行TOPSS程序的客户端,查询的时候抛出一个异常,跟踪代码发现是上周在数据库中添加了一个新的字段,但是并没有设置默认值。但是这个默认值需要根据判断项目的ID来设定,不能统一设置为0,上网百度了一下说是用触发器可以实现,顾名思义,触发器是数据库在某一动作进行的开始或结束之后引发的事件。 具体 阅读全文
posted @ 2017-09-25 10:33 Jazz_Law 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 双缓存打开方式: 1、在控件中直接设置。 SetStyle(ControlStyles.DoubleBuffer, true); 2、在控件外通过反射设置。 control.GetType().GetProperty("DoubleBuffered", System.Reflection.Bindi 阅读全文
posted @ 2017-09-21 18:31 Jazz_Law 阅读(629) 评论(0) 推荐(1) 编辑
#RecentCommentsBlock li { margin: 0; width: 275px; } #RecentCommentsBlock li.recent_comment_body { border-radius: 0; margin: 0; } #RecentCommentsBlock li.recent_comment_title { border-radius: 5px 5px 0 0; margin: 3px 0 0; } #RecentCommentsBlock li.recent_comment_author { border-radius: 0 0 5px 5px; margin: 0; } .desc_img{ width:75px; max-width:75px; } #blog-calendar{ background:white; } /* comment */ div.commentform{ margin-bottom:100px; } #commentform_title { background: url("http://static.cnblogs.com/images/icon_addcomment.gif") no-repeat scroll 0 2px; color: #0078d8; font-size:14px; } div.commentform p{ margin-bottom:10px; } .comment_btn { height: 35px; width: 90px; background: none repeat scroll 0 0 #0078d8; border: 0 none; border-radius: 5px; color: white; cursor:pointer; } .comment_btn:hover{ background:#317ef3; } #commentbox_opt,#commentbox_opt + p { text-align:center; } #tbCommentBody{ width:100%; resize:none; } #tbCommentAuthor,#tbCommentBody{ border:1px solid #0078d8; } #tbCommentBody:hover{ border:1px solid #fca021; } #comments > h3 { background: none repeat scroll 0 0 #0078d8; border-radius: 3px; color: white; padding: 8px; border:0 none; font-size:14px; } #comments{ font-size: 13px; } #comments h4{ margin-top:10px; } #comments h4 span { color: #6c6351; font-size: 12px; } .comment_actions { border-bottom: 1px dashed #0078d8; display: block; padding-bottom: 10px; } .blog_comment_body { color: #111; font-size: 13px; margin-bottom: 10px; margin-top: 10px; } #comment_nav { font-size: 14px; margin-top: 10px; text-align: right; }