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