12 2012 档案

摘要:一段服务器端配置文件,一段客户端配置文件,一段下载代码。RemoteXmlFile.xml AnalysisXml.csusing System;using System.Collections.Generic;using System.Linq;using System.... 阅读全文
posted @ 2012-12-28 11:05 哲夫 阅读(159) 评论(0) 推荐(0) 编辑
摘要:WebClient dailyClient = new WebClient(); if (dailyClient.IsBusy) { dailyClient.CancelAsync(); } dailyClient.Uplo... 阅读全文
posted @ 2012-12-23 15:16 哲夫 阅读(189) 评论(0) 推荐(0) 编辑
摘要://由于日志中含有中文,用常用的Navigate()方法会含有乱码,所以用这种流的方式,一行一行的读。 string fullPath = @"F:\comback\Release\log\20121216.Log"; StringBu... 阅读全文
posted @ 2012-12-18 16:03 哲夫 阅读(161) 评论(0) 推荐(0) 编辑
摘要://由于日志中含有中文,用常用的LoadFile方法会含有乱码,所以用这种流的方式,一行一行的读。 string fullPath = @"F:\comback\Release\log\20121218.Log"; StringBuilder sb = n... 阅读全文
posted @ 2012-12-18 15:54 哲夫 阅读(201) 评论(0) 推荐(0) 编辑
摘要:这个没含量,以前也没用过treeview控件,初次用。需求:F盘下有年目录,下面有月目录,再下面就是天的文件,用treeview显示下,折腾了一两个小时,搞出来了。//初始化树形列表值 private void Test_Load(object sender, EventArgs e)... 阅读全文
posted @ 2012-12-17 18:02 哲夫 阅读(159) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace comback{ class LogManager { // //保存日志的... 阅读全文
posted @ 2012-12-17 14:16 哲夫 阅读(132) 评论(0) 推荐(0) 编辑
摘要:最近在做winform的程序中,需要只能打开一个程序,如果已经存在,则激活该程序的窗口,并显示在最前端。在网上google了一哈,找到了很多的解决方案。这里我整理了3种方案,并经过了测试,现和朋友们分享:一、使用用互斥量(System.Threading.Mutex)同步基元,它只向一个线程授予对共... 阅读全文
posted @ 2012-12-15 12:03 哲夫 阅读(89) 评论(0) 推荐(0) 编辑
摘要:被迫转到MySQL数据库,发现读取数据库时,tinyint类型的值都被转化为boolean了,这样大于1的值都丢失,变成true了。查阅资料MySQL中无Boolean类型,都是存储为tinyint了,这也无妨,但是读回时不应该都变成boolean啊。网络检索没有解决方案,准备向官方报告bug,细想... 阅读全文
posted @ 2012-12-04 11:23 哲夫 阅读(162) 评论(0) 推荐(0) 编辑

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