摘要: Public Class Form1 Private Sub Service_Synchr(ByVal index As Integer) ' 处理事件 End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArg... 阅读全文
posted @ 2019-05-22 17:58 forack 阅读(513) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-05-22 17:58 forack 阅读(620) 评论(0) 推荐(0) 编辑
摘要: 1.进入对应svn目录下的.svn文件夹,并找到wc.db 2.用SQlite 数据库工具打开这个db文件 3.找到WC_LOCK表,并将里面的数据删除 阅读全文
posted @ 2019-05-22 17:54 forack 阅读(965) 评论(0) 推荐(0) 编辑
摘要: 1 /// 2 /// 获取指定日期,在为一年中为第几周 3 /// 4 /// 指定时间 5 /// 返回第几周 6 private static int GetWeekOfYear(DateTime dtWeek) 7 { 8 System.Globalization.GregorianCalendar gc = new System.Globalization.Gr... 阅读全文
posted @ 2019-05-22 17:53 forack 阅读(1187) 评论(0) 推荐(0) 编辑
摘要: string BoxCode = "X20171215090101"; DateTime t = DateTime.ParseExact(BoxCode.Substring(1, 14), "yyyyMMddHHmmss", System.Globalization.CultureInfo.CurrentCulture).AddDays(-i); 阅读全文
posted @ 2019-05-22 17:52 forack 阅读(4978) 评论(0) 推荐(1) 编辑
摘要: 1 string text= System.Web.HttpUtility.UrlEncode("heart", System.Text.Encoding.UTF8); //UrlEncode编码 2 string data = System.Web.HttpUtility.UrlDecode(te 阅读全文
posted @ 2019-05-22 17:51 forack 阅读(16016) 评论(0) 推荐(3) 编辑
摘要: Newtonsoft.Json,一款.NET中开源的Json序列化和反序列化类库(下载地址http://json.codeplex.com/)。 下面是Json序列化和反序列化的简单封装: 补充Newtonsoft.Json用法 为进一步理解Newtonsoft,写了一些测试的例子: 使用Json帮 阅读全文
posted @ 2019-05-22 17:50 forack 阅读(1015) 评论(0) 推荐(0) 编辑
摘要: C#与PHP 共用可逆加密算法 密钥使用MD5加密、 PHP 代码 C# 代码 阅读全文
posted @ 2019-05-22 17:48 forack 阅读(211) 评论(0) 推荐(0) 编辑