摘要:
1.DelegateCommand.cs 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 u 阅读全文
摘要:
看到多线程的其他博客,在c++中推荐使用_beginthreadex而不是createThread创建线程。 _beginthreadex()是C运行库函数,CreateThread()是windows API。CreateThread在关闭时需要CloseHandle,容易造成内存泄漏等…… 1. 阅读全文
摘要:
using System.Threading; 1.定义线程 Thread ThreadInspect; 2。创建线程对象,并设置线程函数 ThreadInspect = new Thread(() => evaluate()); //开启线程 3.线程函数 private void evaluat 阅读全文
摘要:
在wpf mvvm框架中,通过Image控件的 Source属性绑定BitmapImage动态显示图片 1.MainWindowVIewModel.cs using System.Windows.Media.Imaging; //使用BitMapImage类型using System.Drawing 阅读全文
摘要:
1.创建选择文件夹对话框 1 List<FileInfo> ImageFileInfo = new List<FileInfo>(); //文件信息 2 FolderBrowserDialog fbd = new FolderBrowserDialog(); //选择文件夹 3 if (fbd.Sh 阅读全文