摘要:
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 ... 阅读全文
摘要:
1 /// 2 /// 递归改变组织树选中状态。 3 /// 4 /// 5 private void RecursionOrgDataTreeStatus(OrgData org) 6 { 7 ... 阅读全文
摘要:
1 public class UpLoadFile 2 { 3 public static void UpLoadFiles(string fileName) 4 { 5 string fileType = Path.GetExte... 阅读全文
摘要:
实体类: 1 using System.Collections.Generic; 2 using System.ComponentModel; 3 4 namespace TreeViewBindingDemo 5 { 6 public class NodeEntry : INotifyP... 阅读全文
摘要:
1 /// 2 /// 根据文件后缀名获取系统图标。 3 /// 4 /// 5 /// 6 public static ImageSource GetIconByExtension(stri... 阅读全文
摘要:
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... 阅读全文
摘要:
Action和Func其实都是委托的【代理】简写形式。简单的委托写法: 1 //普通的委托 2 public delegate void myDelegate(string str); 3 4 //Delegate委托调。 5 myDelegate dDelegate = new myDelega... 阅读全文
摘要:
不经意间发现了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... 阅读全文
摘要:
在编写多线程程序时无可避免会碰到线程的同步问题。什么是线程的同步呢?举个例子:假如在一个公司里面有一个变量记录某人T的工资count=100,有两个主管A和B(即工作线程)在早一些时候拿了这个变量的值回去 ,过了一段时间A主管将T的工资加了5块,并存回count变量,而B主管将T的工资减去3块,并存... 阅读全文
摘要:
单线程简介单线程顾名思义就是只有一个线程。默认情况下,系统为应用程序分配一个主线程。多线程简介当需要用户交互的软件都必须尽可能快的对用户的活动作出反应,这时可以使用多线程。在以下情况可以使用多线程:①通过网络与Web服务器和数据库进行通信。②执行占用大量时间的操作。③区分具有不同优先级的任务。④使用... 阅读全文