上一页 1 ··· 8 9 10 11 12 13 14 15 下一页
摘要: private void Draw(IntPtr winHandle,Point location,Size size) { Graphics g = Graphics.FromHwnd(winHandle); GraphicsPath gp = new GraphicsPath(); Rectangle rec = new Rectangle(location, size); gp.AddRectangle(rec); Color[] surroundColor = new Color[] { Color.White }; PathGradientBrush pb = new PathGr. 阅读全文
posted @ 2011-10-23 19:49 lanmiao 阅读(1378) 评论(0) 推荐(0) 编辑
摘要: 1 int s = DateTime.Now.Second;2 Graphics g = e.Graphics;3 g.SmoothingMode = SmoothingMode.AntiAlias;4 5 g.TranslateTransform(label1.Width / 2.0f, label1.Height / 2.0f);6 g.RotateTransform((float)s * 6-90);7 g.DrawLine(new Pen(Co... 阅读全文
posted @ 2011-10-21 11:31 lanmiao 阅读(478) 评论(0) 推荐(0) 编辑
摘要: Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN] @="Delete SVN Folders"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command]@="cmd.exe /c \"TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \" 阅读全文
posted @ 2011-10-18 16:49 lanmiao 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 工厂模式与抽象工厂模式,相信同行不会陌生.在网上及相关书里面也看过这方面的介绍(推荐这两本书:Steven John Metsker's Design Patterns inc#和 Gof's Design Pattern Framework2.0).今天抽点时间,写点这方面的东西,希望能起到一点抛砖引玉的作用. 工厂模式与抽象工厂模式是应用得比较多的构造型模式,先简单的介绍一下这种构造模式的应用背景: 在开发一个类的过程中,我们一般都要为这个类开发相应的构造函数(不过大部分情况下,.NET开发环境会自动默认创建构造函数),这样,使用这个类的客户可以利用构造函数对这个类进行实例 阅读全文
posted @ 2011-10-18 16:31 lanmiao 阅读(304) 评论(0) 推荐(0) 编辑
摘要: view plaincopy to clipboardprint?usingSystem; usingSystem.Data; usingSystem.Configuration; usingSystem.Collections; usingSystem.Web; usingSystem.Web.Security; usingSystem.Web.UI; usingSystem.Web.UI.WebControls; usingSystem.Web.UI.WebControls.WebParts; usingSystem.Web.UI.HtmlControls; usingSystem.Tex 阅读全文
posted @ 2011-10-18 16:29 lanmiao 阅读(210) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 下一页