摘要: win+R 运行regedit找到HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\GraphicsDrivers\Configuration\在Configuration这上面右键,选择查找,输入Scaling,在右框找到scaling,右键scali... 阅读全文
posted @ 2015-09-16 10:50 pengde 阅读(290) 评论(0) 推荐(0)
摘要: for(inti=list.Count-1;i>=0;i--){if(list[i]){list.RemoveAt(i);}} 阅读全文
posted @ 2015-09-08 10:45 pengde 阅读(157) 评论(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 阅读(124) 评论(0) 推荐(0)
摘要: Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.High; 阅读全文
posted @ 2015-09-07 15:06 pengde 阅读(175) 评论(0) 推荐(0)
摘要: 1.UIWindow和UIView和 CALayer 的联系和区别?答:UIView是视图的基类,UIViewController是视图控制器的基类,UIResponder是表示一个可以在屏幕上响应触摸事件的对象;UIwindow是UIView的子类,UIWindow的主要作用:一是提供一个区域来显... 阅读全文
posted @ 2015-09-02 10:58 pengde 阅读(166) 评论(0) 推荐(0)
摘要: 格式: mysql -h主机地址 -u用户名 -p用户密码1、连接到本机上的MYSQL。首先打开DOS窗口,然后进入目录mysql\bin,再键入命令mysql -u root -p,回车后提示你输密码.注意用户名前可以有空格也可以没有空格,但是密码前必须没有空格,否则让你重新输入密码。如果刚安装好... 阅读全文
posted @ 2015-09-02 10:50 pengde 阅读(137) 评论(0) 推荐(0)
摘要: Expression.Where((v) => v.bizType != 0); 阅读全文
posted @ 2015-08-27 20:03 pengde 阅读(204) 评论(0) 推荐(0)
摘要: new System.Threading.Thread(new System.Threading.ThreadStart(ReadState)).Start(); 阅读全文
posted @ 2015-08-13 14:01 pengde 阅读(170) 评论(0) 推荐(0)
摘要: publicclassLPTControl { [StructLayout(LayoutKind.Sequential)] privatestructOVERLAPPED { intInternal; intInternalHigh; intOffset; intOffSetHigh; inthEv... 阅读全文
posted @ 2015-08-12 19:32 pengde 阅读(434) 评论(0) 推荐(0)
摘要: try { if (this.serialPort1.IsOpen) { Thread.Sleep(300); int num = port1.BytesToRead;... 阅读全文
posted @ 2015-08-11 11:30 pengde 阅读(415) 评论(0) 推荐(0)