07 2012 档案

摘要:1 var _IndextifyCode=IndentifyCode.Instance.CreateIndentifyCode(4); 2 3 IndentifyCode.Instance.CreateImage(_IndextifyCode,"image名称",100,35);//100,35大小 4 5 public class IndentifyCode 6 { 7 private static IndentifyCode instance = null; 8 public static IndentifyCode Instance 9 ... 阅读全文
posted @ 2012-07-31 12:13 GeneralKING 阅读(419) 评论(0) 推荐(0)
摘要:C# Property link:http://msdn.microsoft.com/en-us/library/aa302326.aspx 阅读全文
posted @ 2012-07-29 14:48 GeneralKING 阅读(162) 评论(0) 推荐(0)
摘要:由于WPF中没有提供PropertyGrid控件,有些业务需要此类的控件。这篇文章介绍在WPF中实现PropertyGrid的三种方式,三种方式都是俺平时使用时总结出来的。第一种方式:使用WindowsForm的PropertyGrid控件。 可以通过WindowsFormsHost将WindowsForm的控件宿主到WPF中使用。分为简单的3步。第一步:引用dll:在WPF应用程序中引入System.Windows.Forms.dll。第二步:引用命名空间:在窗体的.cs代码中引用此命名空间:using System.Windows.Forms;在XAML中引用此命名空间代码如下:xmlns 阅读全文
posted @ 2012-07-29 11:44 GeneralKING 阅读(1000) 评论(1) 推荐(0)
摘要://今天 DateTime.Now.Date.ToShortDateString(); //昨天,就是今天的日期减一 DateTime.Now.AddDays(-1).ToShortDateString(); //明天,今天的日期加一 DateTime.Now.AddDays(1).ToShortDateString(); //本周(要知道本周的第一天就得先知道今天是星期几,从而得知本周的第一天就是几天前的那一天,要注意的是这里的每一周是从周日始至周六止 DateTime.Now.AddDays(Convert.ToDouble((0 - Convert.ToInt16(DateTime.No 阅读全文
posted @ 2012-07-26 14:58 GeneralKING 阅读(3874) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2012-07-25 16:47 GeneralKING 阅读(430) 评论(1) 推荐(0)