摘要: 1 /// 2 /// 转为日期格式3 /// 4 /// 时间5 /// 6 public static string ToDateString(this DateTime dateTime)7 ... 阅读全文
posted @ 2015-01-27 17:49 Tauren 阅读(215) 评论(0) 推荐(0)
摘要: 最近的项目是给手机app 提供方法。因此 此方法可以进行接口测试 1 static class HttpClient 2 { 3 static CookieContainer cookies = new CookieContainer(); 4 public ... 阅读全文
posted @ 2015-01-27 17:38 Tauren 阅读(894) 评论(0) 推荐(0)
摘要: DataGridView使用技巧(七、设定列宽和行高自动调整)----.NET1) 设定行高和列宽自动调整[VB.NET]' 设定包括Header和所有单元格的列宽自动调整DataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells' 设定包括Header和所有单元格的行高自动调整DataGridView1.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells[C#]// 设定包括Header和所有单元格的列宽自动调整DataG 阅读全文
posted @ 2013-10-08 11:50 Tauren 阅读(1291) 评论(0) 推荐(0)
摘要: private static void SaveLog(string log,string ex) { string strCurPath = AppDomain.CurrentDomain.BaseDirectory; string strErrorLogPath = Path.Combine(strCurPath, "ErrorLog"); string strErrorLogFile = Path.Combine(strErrorLogPath, "SendEmailLog.log"); if (!Directory.Exists(strError 阅读全文
posted @ 2012-08-30 08:49 Tauren 阅读(251) 评论(0) 推荐(0)