摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Net; 6 using System.Xml; 7 using ... 阅读全文
posted @ 2015-05-15 13:56 及乌及国 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 1 /// 2 /// 递归改变组织树选中状态。 3 /// 4 /// 5 private void RecursionOrgDataTreeStatus(OrgData org) 6 { 7 ... 阅读全文
posted @ 2015-05-11 19:47 及乌及国 阅读(1812) 评论(0) 推荐(0) 编辑
摘要: 1 public class UpLoadFile 2 { 3 public static void UpLoadFiles(string fileName) 4 { 5 string fileType = Path.GetExte... 阅读全文
posted @ 2015-05-10 10:54 及乌及国 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 实体类: 1 using System.Collections.Generic; 2 using System.ComponentModel; 3 4 namespace TreeViewBindingDemo 5 { 6 public class NodeEntry : INotifyP... 阅读全文
posted @ 2015-05-10 09:40 及乌及国 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 1 /// 2 /// 根据文件后缀名获取系统图标。 3 /// 4 /// 5 /// 6 public static ImageSource GetIconByExtension(stri... 阅读全文
posted @ 2015-05-10 09:26 及乌及国 阅读(752) 评论(0) 推荐(0) 编辑
摘要: XAML.CS代码: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 using... 阅读全文
posted @ 2015-05-05 13:58 及乌及国 阅读(465) 评论(0) 推荐(0) 编辑
摘要: Action和Func其实都是委托的【代理】简写形式。简单的委托写法: 1 //普通的委托 2 public delegate void myDelegate(string str); 3 4 //Delegate委托调。 5 myDelegate dDelegate = new myDelega... 阅读全文
posted @ 2015-04-30 14:49 及乌及国 阅读(687) 评论(2) 推荐(0) 编辑
摘要: 不经意间发现了wpf的这个小玩意,感觉蛮有意思的。我在项目中添加了一张图片 如图:wpf-1.JPG(10.73 K)2010-6-6 17:04:47然后再这张图片的属性中设置它的生成操作为SplashScreen 如图:wpf-2.JPG(13.51 K)2010-6-6 17:04:47之后f... 阅读全文
posted @ 2015-03-29 22:47 及乌及国 阅读(5820) 评论(0) 推荐(0) 编辑
摘要: 在编写多线程程序时无可避免会碰到线程的同步问题。什么是线程的同步呢?举个例子:假如在一个公司里面有一个变量记录某人T的工资count=100,有两个主管A和B(即工作线程)在早一些时候拿了这个变量的值回去 ,过了一段时间A主管将T的工资加了5块,并存回count变量,而B主管将T的工资减去3块,并存... 阅读全文
posted @ 2015-03-29 09:06 及乌及国 阅读(720) 评论(0) 推荐(1) 编辑
摘要: 单线程简介单线程顾名思义就是只有一个线程。默认情况下,系统为应用程序分配一个主线程。多线程简介当需要用户交互的软件都必须尽可能快的对用户的活动作出反应,这时可以使用多线程。在以下情况可以使用多线程:①通过网络与Web服务器和数据库进行通信。②执行占用大量时间的操作。③区分具有不同优先级的任务。④使用... 阅读全文
posted @ 2015-03-27 20:11 及乌及国 阅读(191) 评论(0) 推荐(0) 编辑