上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: 通过HtmlAgilityPack 实现对html页面解析HtmlDocument doc = new HtmlDocument(); doc.Load(yourStream); var itemList = doc.DocumentNode.SelectNodes("//span[@class=' 阅读全文
posted @ 2017-03-27 13:14 beautifulday 阅读(1938) 评论(0) 推荐(0) 编辑
摘要: public static DateTime GetInternetDate() { var client = new TcpClient("time.nist.gov", 13); using (var streamReader = new StreamReader(client.GetStrea 阅读全文
posted @ 2017-03-23 14:40 beautifulday 阅读(1137) 评论(0) 推荐(0) 编辑
摘要: 一、在script文件夹下面添加_references.js文件夹 二、把jquery文件拖到该文件中 保存,重新打开相应的文件,即出现智能提示 阅读全文
posted @ 2017-03-23 10:30 beautifulday 阅读(712) 评论(0) 推荐(0) 编辑
摘要: 使用模拟登录大致可以分为两步 一、post登录获取cookis public CookieContainer GetCookie(string url,string account,string password, out bool result) { CookieContainer cc = ne 阅读全文
posted @ 2017-03-22 15:02 beautifulday 阅读(3814) 评论(1) 推荐(0) 编辑
摘要: <configuration> <configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> </configSections> <log4n 阅读全文
posted @ 2017-01-18 16:53 beautifulday 阅读(2009) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// DataTable导出到Excel /// </summary> /// <param name="fileName">默认的文件名</param> /// <param name="dataTable">数据源,一个DataTable数据表</param> // 阅读全文
posted @ 2017-01-16 16:05 beautifulday 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 实现如下效果 <Window xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmln 阅读全文
posted @ 2016-12-27 11:21 beautifulday 阅读(2676) 评论(0) 推荐(0) 编辑
摘要: public delegate void AsyncDelegate(); private AsyncDelegate asyncDl; asyncDl = new AsyncDelegate(() => { //todo }); AsyncCallback callBack = new Async 阅读全文
posted @ 2016-12-23 17:10 beautifulday 阅读(3921) 评论(0) 推荐(0) 编辑
摘要: wpf progressBar使用起来有些麻烦,直接设置value的值还不行 而是通过委托来执行setValue方法 //Create a Delegate that matches the Signature of the ProgressBar's SetValue method private 阅读全文
posted @ 2016-12-22 14:10 beautifulday 阅读(6541) 评论(2) 推荐(0) 编辑
摘要: 应用场景:当我们使用devexpress gridcontrol wpf控件时。可要会要根据这一行要显示的值来设置相应的颜色 可以通过下面方法来实现 一、先定义一个style <local:Conv x:Key="c"/> <Style x:Key="optimizedRowStyle" Targe 阅读全文
posted @ 2016-12-16 11:19 beautifulday 阅读(7563) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页