摘要: 菜单命令 ShowCommandCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections.Generic; 3using System.Text; 4using System.W... 阅读全文
posted @ 2007-01-12 10:42 南守拥 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 产品类Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections.Generic; 3using System.Text; 4 5namespace Gof.Test.Strate... 阅读全文
posted @ 2007-01-11 15:58 南守拥 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 语境: DoorCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2 3namespace Gof.Test.State 4{ 5 public delegate void ChangeHandler(Do... 阅读全文
posted @ 2007-01-10 17:10 南守拥 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 一个经典实例 - 排序 自定义类Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2 3namespace Gof.Test.TemplateMethod 4{ 5 public class User 6 {... 阅读全文
posted @ 2007-01-10 13:13 南守拥 阅读(234) 评论(1) 推荐(0) 编辑
摘要: UICode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Drawing; 3using System.IO; 4using System.Reflection; 5using Syste... 阅读全文
posted @ 2007-01-10 11:27 南守拥 阅读(373) 评论(1) 推荐(0) 编辑
摘要: GirlFactoryCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1using System;23namespace Gof.Test.AbstractFactory4{5 public abstract class GirlFactory ... 阅读全文
posted @ 2007-01-09 10:29 南守拥 阅读(239) 评论(1) 推荐(0) 编辑
摘要: 需要的JavaScriptCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 Div设置Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHi... 阅读全文
posted @ 2007-01-08 20:16 南守拥 阅读(744) 评论(1) 推荐(0) 编辑
摘要: 客户代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using Gof.Test.Factory.Machines; 3 4namespace Gof.Test.Factory.Plan 5{ 6 pub... 阅读全文
posted @ 2007-01-08 15:45 南守拥 阅读(367) 评论(0) 推荐(0) 编辑
摘要: IChemicalCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2 3namespace Gof.Test.Flyweight 4{ 5 public interface IChemical 6 { 7 ... 阅读全文
posted @ 2007-01-08 12:40 南守拥 阅读(261) 评论(1) 推荐(0) 编辑
摘要: 客户代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1 Console.WriteLine( root.Responsible.Name );2 Console.WriteLine( leafonelef... 阅读全文
posted @ 2007-01-08 12:34 南守拥 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 自定义代理类Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Data; 3 4namespace DataLayer 5{ 6 /**//// 7 /// This... 阅读全文
posted @ 2007-01-05 22:53 南守拥 阅读(344) 评论(1) 推荐(0) 编辑
摘要: Machine类(可以包含容器)Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2 3namespace Gof.Test.Mediator 4{ 5 public class Machine 6 { 7 ... 阅读全文
posted @ 2007-01-05 17:21 南守拥 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 操作上的抽象Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1using System;23namespace Gof.Test.Bridge4{5 public interface ITankAction6 {7 strin... 阅读全文
posted @ 2007-01-05 14:09 南守拥 阅读(445) 评论(1) 推荐(0) 编辑
摘要: MyFileCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2 3namespace Gof.Test.Composite 4{ 5 public class MyFile:FolderAbstract 6 ... 阅读全文
posted @ 2007-01-04 22:27 南守拥 阅读(344) 评论(1) 推荐(0) 编辑
摘要: 外观模式封装系统的复杂性来提高程序的可用性,我们经常用的是数据访问外观类,它隔离了Ado.net的复杂性。 简单的外观例子Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Data; 3usin... 阅读全文
posted @ 2007-01-04 17:59 南守拥 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 类适配器: 客户程序定义好的接口Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1using System;23namespace Gof.Test.adapter4{5 public interface ICart6 {7 ... 阅读全文
posted @ 2007-01-04 17:26 南守拥 阅读(289) 评论(1) 推荐(0) 编辑
摘要: Create a custom object in JavaScriptCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1function Person( name, surname )2{3 this.name = name;4 th... 阅读全文
posted @ 2006-12-31 13:44 南守拥 阅读(242) 评论(0) 推荐(0) 编辑
摘要: InterestingCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 public class Interesting 2 { 3 public ChangeHandler _change; 4 publi... 阅读全文
posted @ 2006-12-31 10:24 南守拥 阅读(370) 评论(0) 推荐(0) 编辑
摘要: SingleTon类Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections.Generic; 3using System.Text; 4 5namespace Gof.Nan.... 阅读全文
posted @ 2006-12-31 09:50 南守拥 阅读(309) 评论(1) 推荐(0) 编辑
摘要: .aspx.csCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections; 3using System.ComponentModel; 4using System.Dat... 阅读全文
posted @ 2006-12-27 15:29 南守拥 阅读(259) 评论(1) 推荐(0) 编辑
摘要: 昨天用添加模板列的方法练了个动态添加列,以适应DataGrid列根据数据库变化。用SetRenderMethodDelegate实现表头合并效果。今天看业务实在看不懂,没事之下,找了个模式,实现了表头和列的固定。不用只能用在IE5以上。 模式如下:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.C... 阅读全文
posted @ 2006-12-26 19:42 南守拥 阅读(1533) 评论(3) 推荐(0) 编辑
摘要: 测试库Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1CREATE TABLE [T_NanshouyongTest] (2 [ProvName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,... 阅读全文
posted @ 2006-12-25 19:34 南守拥 阅读(591) 评论(1) 推荐(0) 编辑
摘要: 异步方法及其委托Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Threading; 3 4namespace Examples.AdvancedProgramming.Asynchrono... 阅读全文
posted @ 2006-12-25 11:44 南守拥 阅读(273) 评论(0) 推荐(0) 编辑
摘要: Add a Bubble EventCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections; 3using System.Collections.Specialized;... 阅读全文
posted @ 2006-12-21 15:57 南守拥 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 一个简单的复合控件的例子,从中尝到不少。。 LoginControlCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections; 3using System.Collecti... 阅读全文
posted @ 2006-12-21 15:11 南守拥 阅读(342) 评论(1) 推荐(0) 编辑
摘要: http://topic.csdn.net/t/20060212/15/4551821.html在CSDN上也有人提过同样的问题,,也有解答。。可以参考。。 阅读全文
posted @ 2006-12-21 13:29 南守拥 阅读(412) 评论(1) 推荐(0) 编辑
摘要: 可以在PostBack之后保存其内动态生成控件的状态。 阅读全文
posted @ 2006-12-20 18:49 南守拥 阅读(479) 评论(1) 推荐(0) 编辑
摘要: Imessage例子Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1// Create a custom 'RealProxy'. 2public class MyProxy : RealProxy 3{ 4 String myURIStrin... 阅读全文
posted @ 2006-12-20 13:01 南守拥 阅读(926) 评论(1) 推荐(0) 编辑
摘要: DataFormatString格式字符串 DataFormatString="{0:格式字符串}" 在DataFormatString 中的 {0} 表示数据本身,而在冒号后面的格式字符串代表所们希望数据显示的格式; 数字、货币格式:在指定的格式符号后可以指定小数所要显示的位数。例如原来的数据为「1.56」,若格式设定为 {0:N1},则输出为「1.5」。其常用的数值格式如下表所示: 格式字... 阅读全文
posted @ 2006-12-18 16:46 南守拥 阅读(1584) 评论(1) 推荐(0) 编辑
摘要: 狂晕了。。在了个例子一会行一会不行。。请高手指点一二。。呵呵。。 Web.configCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 2 3 4 5 6 7 8 9... 阅读全文
posted @ 2006-12-16 17:56 南守拥 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 只能接受数字Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Text; 3using System.Web; 4using System.Web.UI; 5using System.Web.U... 阅读全文
posted @ 2006-12-15 17:10 南守拥 阅读(228) 评论(0) 推荐(0) 编辑
摘要: WebDialogCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.ComponentModel; 3using System.Text; 4using System.Collections; ... 阅读全文
posted @ 2006-12-15 15:47 南守拥 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.ComponentModel; 3using System.ComponentModel.Design; 4using System.Web... 阅读全文
posted @ 2006-12-15 15:16 南守拥 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.ComponentModel; 3using System.Web.UI; 4using System.Web.UI.HtmlCon... 阅读全文
posted @ 2006-12-15 14:32 南守拥 阅读(286) 评论(0) 推荐(0) 编辑
摘要: WebTimerDesignerCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.ComponentModel; 3using System.ComponentModel.Design; 4us... 阅读全文
posted @ 2006-12-15 12:52 南守拥 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Timer控件Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Web.UI; 3using System.ComponentModel; 4using System.Collectio... 阅读全文
posted @ 2006-12-14 19:20 南守拥 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 整数或者小数:^[0-9]+\.{0,1}[0-9]{0,2}$只能输入数字:"^[0-9]*$"。只能输入n位的数字:"^\d{n}$"。只能输入至少n位的数字:"^\d{n,}$"。只能输入m~n位的数字:。"^\d{m,n}$"只能输入零和非零开头的数字:"^(0|[1-9][0-9]*)$"。只能输入有两位小数的正实数:"^[0-9]+(.[0-9]{2})?$"。只能输入有1~3位小数的... 阅读全文
posted @ 2006-12-13 19:26 南守拥 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 全并行的DataGridCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1private void grdSearchResults_ItemDataBound(object sender, System.Web.UI.WebControls.Dat... 阅读全文
posted @ 2006-12-13 18:18 南守拥 阅读(737) 评论(1) 推荐(0) 编辑
摘要: 前些时候写DataGrid合并行效果,在网上偶然必然了这个接口的实现。 Itemplate例子MsdnCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Web; 3using System.We... 阅读全文
posted @ 2006-12-11 18:23 南守拥 阅读(905) 评论(3) 推荐(0) 编辑
摘要: .aspxCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 3 4 5 6 ... 阅读全文
posted @ 2006-12-11 16:07 南守拥 阅读(234) 评论(0) 推荐(0) 编辑