摘要: 方法1 方法2 取消跨线程检查 引自 [Winform]线程间操作无效,从不是创建控件的线程访问它的几个解决方案,async和await? 阅读全文
posted @ 2018-10-17 14:46 quanzhan 阅读(1385) 评论(0) 推荐(0) 编辑
摘要: 一、List (1)、去掉list中的重复元素 1.通过HashSet list = new HashSet<string>(list).ToList(); 2. list = list.Where((x, i) => list.FindIndex(z => z.name== x.name) == 阅读全文
posted @ 2018-10-17 13:47 quanzhan 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1.设置属性View为Details 2.添加表头 this.listView1.Columns.Add("head1", 50); this.listView1.Columns.Add("head2", 50); 3.添加一行 listView1.Items.Add(new ListViewIte 阅读全文
posted @ 2018-10-17 10:44 quanzhan 阅读(453) 评论(0) 推荐(0) 编辑
摘要: Color命名空间 using System.Drawing; 引自:Color颜色对照表 阅读全文
posted @ 2018-10-17 09:43 quanzhan 阅读(5988) 评论(0) 推荐(0) 编辑