上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: using System; using System.Data; using Excel= Microsoft.Office.Interop.Excel; namespace 读写excel { /// <summary> /// MainWindow.xaml 的交互逻辑 /// </summar 阅读全文
posted @ 2020-04-19 19:28 灰主流 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 当wpf里设置边框的时候,如果是dynamicResource的话,有时候会不显示。 1.window里定义颜色,这时候不显示 <Window.Resources> <Color x:Key="red" R="255" G="0" B="0" A="255" /> <Color x:Key="blu 阅读全文
posted @ 2020-04-19 19:26 灰主流 阅读(574) 评论(2) 推荐(0) 编辑
摘要: https://files.cnblogs.com/files/chlm/wpf%E5%BC%82%E6%AD%A5%E5%8A%A0%E8%BD%BD5w%E6%8E%A7%E4%BB%B6.rar 阅读全文
posted @ 2020-04-19 19:06 灰主流 阅读(394) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 由结构体转换为byte数组 /// </summary> public static byte[] StructureToByte<T>(T structure) { int size = Marshal.SizeOf(typeof(T)); byte[] buf 阅读全文
posted @ 2020-04-19 19:03 灰主流 阅读(2178) 评论(0) 推荐(1) 编辑
摘要: using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.InteropServices; using System.Text; 阅读全文
posted @ 2020-04-18 20:30 灰主流 阅读(325) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using Excel = Microsof 阅读全文
posted @ 2020-04-18 20:28 灰主流 阅读(1273) 评论(0) 推荐(0) 编辑
摘要: 1.什么时候用到invoke和beginInvoke --当调度线程不是主线程的时候 2.invoke和beginInvoke效率差别 测试方法:使用线程更新图片内容,此时,调度线程和非调度线程不是同一个,要用到封送处理(invoke或beginInvoke) Task.Factory.StartN 阅读全文
posted @ 2020-04-18 20:21 灰主流 阅读(2062) 评论(1) 推荐(1) 编辑
摘要: using System; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Reflection; using System.Runtime.InteropServices; usin 阅读全文
posted @ 2020-04-18 19:00 灰主流 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 1.截图关键代码 public class ScreenShotHelper : MarshalByRefObject, IScreenShotHelper { public byte[] GetImage() { var wid = Screen.PrimaryScreen.Bounds.Widt 阅读全文
posted @ 2020-04-18 18:17 灰主流 阅读(437) 评论(0) 推荐(0) 编辑
摘要: 说明:源码引用于:https://github.com/mrjono1/FastExcel由于,源码不支持在excel中添加特殊符号,故做了改动。改动如下:cell.cs文件的 internal StringBuilder ToXmlString(SharedStrings sharedString 阅读全文
posted @ 2020-04-18 16:01 灰主流 阅读(313) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页