07 2013 档案

摘要:在使用这个类之前,建议先自己去写,把方法都了解了再用,这样你就可以在适当的时候修个此类,另外请自己构建PagerInfousing System;using System.Collections.Generic;using System.Linq;using System.Text;using MongoDB.Driver;using MongoDB.Bson;using MongoDB.Driver.Builders;namespace dbhelp{ /// /// mongodb的封装类。 /// add by yancong2008@gmail.com 2011.0... 阅读全文
posted @ 2013-07-19 14:25 树形图 阅读(3865) 评论(2) 推荐(0) 编辑
摘要:这几天做项目懒了就用backgroundworker这个控件,觉得它比多线程方便一些,然后这个线程里面在开线程,然后惨剧就发生了:当我打开一个主窗口后,在打开一个子窗口,子窗口里有个backgroundworker,然后我就启动了这个dowork,然后就开始执行很耗时的操作,闲着无聊,我点了几下鼠标,一不小心把子窗口给关了,靠,执行了一半的程序,重启吧,可是还没等我重新打开,奇迹出现了,程序执行完了,这说明我关闭了窗口,但是backgroundworker还在运行,嗯?这可不行啊,我这么严谨的人怎么能出这样的错呢,虽然客户是不会乱点的,好吧,让我们看看怎么办-----正题经过我测试到现在得出结 阅读全文
posted @ 2013-07-06 00:17 树形图 阅读(3876) 评论(15) 推荐(0) 编辑
摘要:public class HttpHelper { public static CookieContainer CookieContainers = new CookieContainer(); /// /// /// /// /// "POST" or "GET" /// when the method is "POST", the data will send to web server, if the method is "GET", the data should be string.empty /// p 阅读全文
posted @ 2013-07-04 16:29 树形图 阅读(494) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示