摘要: 一. 重写控件 个人理解重写控件的意义:需要多次添加,但是只要部分功能,直接写成方法后,方便设置,不用重复设置,提高代码重用性 例子: class lab : Label//例子 { public Label CreateLab(string labName, int x, int y, int w, int h, string text) { this.Name = labName; this.... 阅读全文
posted @ 2008-04-21 10:33 shangb 阅读(457) 评论(0) 推荐(0) 编辑
摘要: 重写控件个人理解重写控件的意义:需要多次添加,但是只要部分功能,直接写成方法后,方便设置,不用重复设置,提高代码重用性例子: class lab : Label//例子 { public Label CreateLab(string labName, int x, int y, int w, int h, string text) { this.Name = labName; ... 阅读全文
posted @ 2008-04-21 10:07 shangb 阅读(231) 评论(0) 推荐(0) 编辑