会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
请叫我懒羊羊
博客园
首页
新随笔
联系
订阅
管理
2017年5月17日
InvokeRequired和Invoke 转
摘要: C#中禁止跨线程直接访问控件,InvokeRequired是为了解决这个问题而产生的,当一个控件的InvokeRequired属性值为真时,说明有一个创建它以外的线程想访问它。此时它将会在内部调用new MethodInvoker(LoadGlobalImage)来完成下面的步骤,这个做法保证了控件
阅读全文
posted @ 2017-05-17 09:23 请叫我懒羊羊
阅读(108)
评论(0)
推荐(0)
2016年8月22日
C# List where FindAll ForEach Comparsion Select
摘要: Where: IEnumerable<Users> user = list.Where(delegate(Users d) { return d.Age > 1; }); foreach (Users users in user) { Console.WriteLine(users.Name + "
阅读全文
posted @ 2016-08-22 15:42 请叫我懒羊羊
阅读(2011)
评论(0)
推荐(0)
2016年1月26日
反射获取资源文件 resx 菜鸟来了
摘要: private string GetResourceByLang(string strLang, string strName) { try { EidtInterface.Class1 calss = new...
阅读全文
posted @ 2016-01-26 13:22 请叫我懒羊羊
阅读(303)
评论(0)
推荐(0)
2015年12月20日
[转]window.location方法获取URL及window.location.assign(url)和replace(url)区别
摘要: 本文转自:http://blog.csdn.net/chendi1985/article/details/5291773window.location方法获取URL统一资源定位符 (Uniform Resource Locator, URL)完整的URL由这几个部分构成:scheme://host:...
阅读全文
posted @ 2015-12-20 18:57 请叫我懒羊羊
阅读(1144)
评论(0)
推荐(0)
公告