随笔分类 -  C# Common

摘要:public static void CopyEntireDir(string sourcePath, string destPath) { //Now Create all of the directories foreach (string dirPath in Directory.GetDirectories(sourcePath, "*", ... 阅读全文
posted @ 2018-10-28 22:41 -Ward- 阅读(550) 评论(0) 推荐(0)
摘要:/// /// ini文件操作类 /// public class IniHelper { #region 动态链接库调用 /// /// 调用动态链接库读取值 /// /// ini节名 /// ini键名 /// 默认值:当无对应键值,则返回该值。 /// 结果缓冲区 /// 结果缓冲区大小 /// in... 阅读全文
posted @ 2018-10-09 08:55 -Ward- 阅读(269) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using iTextSharp.text; using iTextSharp.text.pdf; using System.IO; public class ... 阅读全文
posted @ 2018-07-23 16:02 -Ward- 阅读(146) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices; namespace AutoRun.Common{ public class WinIo { p 阅读全文
posted @ 2017-09-20 18:14 -Ward- 阅读(1402) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; namespace Common { public class WebH { WebProxy proxy; ... 阅读全文
posted @ 2017-08-24 10:15 -Ward- 阅读(276) 评论(0) 推荐(0)
摘要:public static bool ListToExcel(List list, string filePath, bool isShowExcle = true) { int rowCount = list.Count; //int columnCount = new T().GetType().GetMembe... 阅读全文
posted @ 2017-04-18 15:42 -Ward- 阅读(264) 评论(0) 推荐(0)
摘要:txtContent.Focus(); txtContent.SelectAll(); 阅读全文
posted @ 2017-04-13 15:38 -Ward- 阅读(3239) 评论(0) 推荐(0)
摘要:RasterEdge.DocImageSDK9.8.7 破解版 本人破解了 RasterEdge.DocImageSDK9.8.7 ,有需要的同学请联系本人. 阅读全文
posted @ 2017-01-19 16:05 -Ward- 阅读(889) 评论(13) 推荐(3)
摘要:using System; using System.Collections; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Linq; namespace Common { /// /// ... 阅读全文
posted @ 2016-12-13 15:43 -Ward- 阅读(1633) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using Word = Microsoft.Office.Interop.Word; using Microsoft.Office.Interop.Word; using System... 阅读全文
posted @ 2016-11-29 14:38 -Ward- 阅读(300) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace Common { public class WordOp 阅读全文
posted @ 2016-11-29 14:29 -Ward- 阅读(291) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Text; namespace Common { /// /// AppSettings操作类,作者:Ward /// public class... 阅读全文
posted @ 2016-11-26 13:56 -Ward- 阅读(381) 评论(0) 推荐(0)
摘要:using System; using System.IO; using System.Linq; using System.Text; namespace Common { public class Log { public static void Writer(Exception ex, str 阅读全文
posted @ 2016-11-15 16:38 -Ward- 阅读(216) 评论(0) 推荐(0)
摘要:不知道为什么,网上对TIF的操作的资料少得可怜,包括CodeProject上都没有找到多少,在网上大多用GDAL,但这个东西,对只想做个合并图片的功能来说,实在是牛刀杀鸡,(9个DLL要带全,相当的恐怖)而且对完成的生成和读取TIF的描述也是相当的少,一般都是用来处理GIS。 版本为优化版,原版经常报内存不足 using System; using System.Collections.Gen... 阅读全文
posted @ 2016-11-15 15:13 -Ward- 阅读(1370) 评论(1) 推荐(0)
摘要:public static bool DataSetToExcel(DataSet dataSet, string filePath, bool isShowExcle = true) { DataTable dataTable = dataSet.Tables[0]; int rowNumber 阅读全文
posted @ 2016-11-11 10:55 -Ward- 阅读(219) 评论(0) 推荐(0)