摘要: for(inti=list.Count-1;i>=0;i--){if(list[i]){list.RemoveAt(i);}} 阅读全文
posted @ 2015-09-08 10:45 pengde 阅读(151) 评论(1) 推荐(0)
摘要: Application.Current.Dispatcher.Invoke(new Action(() =>)) public delegate void delegateText() private void setext() { if(this.invokerequired) { this.in 阅读全文
posted @ 2015-09-07 15:10 pengde 阅读(116) 评论(0) 推荐(0)
摘要: Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.High; 阅读全文
posted @ 2015-09-07 15:06 pengde 阅读(163) 评论(0) 推荐(0)
摘要: 1.UIWindow和UIView和 CALayer 的联系和区别?答:UIView是视图的基类,UIViewController是视图控制器的基类,UIResponder是表示一个可以在屏幕上响应触摸事件的对象;UIwindow是UIView的子类,UIWindow的主要作用:一是提供一个区域来显... 阅读全文
posted @ 2015-09-02 10:58 pengde 阅读(145) 评论(0) 推荐(0)
摘要: 格式: mysql -h主机地址 -u用户名 -p用户密码1、连接到本机上的MYSQL。首先打开DOS窗口,然后进入目录mysql\bin,再键入命令mysql -u root -p,回车后提示你输密码.注意用户名前可以有空格也可以没有空格,但是密码前必须没有空格,否则让你重新输入密码。如果刚安装好... 阅读全文
posted @ 2015-09-02 10:50 pengde 阅读(129) 评论(0) 推荐(0)
摘要: Expression.Where((v) => v.bizType != 0); 阅读全文
posted @ 2015-08-27 20:03 pengde 阅读(193) 评论(0) 推荐(0)
摘要: new System.Threading.Thread(new System.Threading.ThreadStart(ReadState)).Start(); 阅读全文
posted @ 2015-08-13 14:01 pengde 阅读(165) 评论(0) 推荐(0)
摘要: publicclassLPTControl { [StructLayout(LayoutKind.Sequential)] privatestructOVERLAPPED { intInternal; intInternalHigh; intOffset; intOffSetHigh; inthEv... 阅读全文
posted @ 2015-08-12 19:32 pengde 阅读(405) 评论(0) 推荐(0)
摘要: try { if (this.serialPort1.IsOpen) { Thread.Sleep(300); int num = port1.BytesToRead;... 阅读全文
posted @ 2015-08-11 11:30 pengde 阅读(389) 评论(0) 推荐(0)
摘要: public class DZip { /// /// 压缩为ZIP文件 /// public void Zip(string directory,string fileName) { //usi... 阅读全文
posted @ 2015-07-23 20:34 pengde 阅读(233) 评论(0) 推荐(0)