-
简单抽象工厂-继简单工厂改善
昨天简单阐述了简单工厂的编程模式,他实现了简单三层中业务逻辑层与数据层的解耦和业务逻辑层与表现层的解耦,使数据访问层的变化不会影响到业务逻辑层,业务逻辑层的变化不回影响到表现层,使程序更加的灵活。但简单工厂类中创建的对象是写死的,也具有局限性,所以...
2018-06-18 03:45:29
-
第 14 章 结构和其他数据形式(函数指针)
1 /* ------------------------------ 2 func_ptr.c -- 使用函数指针 3 ------------------------------ */ 4 5 #include stdio.h 6 #include string .h 7 #include ctype.h 8 9 #define LEN 81 10 11 char * s_gets( char *st, int n); 12 char showmenu( void ); 13...
2018-06-18 03:45:27
-
关于设计中的依赖倒置原则
关于设计中的依赖倒置原则 依赖倒置原则是面向对象设计中的一条非常重要的原则,它描述在进行业务设计时,要依赖于抽象而不依赖于具体实现。若使用接口或抽象类而不是它的具体实现类来编程,则会使代码变得更稳定,从而大大提高了程序应对业务变化的能力。 例如: 把 L...
2018-06-18 03:45:27
-
c/c++ 字节对齐
...
2018-06-18 03:45:26
-
SandDock 应用示例
直接上代码 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using TD.SandDock; namespace SalesClient{ public parti...
2018-06-18 03:45:25
-
Oracle 数据库维护相关
版本升级 在维护数据库升级的过程中,会产生n个脚本。谈谈我所处的项目背景,项目数据库最早版本假定为1,最后在多次维护后,版本号,可能变更为16.那么针对项目上不同的数据库版本,如何来进行升级呢? 我使用的升级策略是,执行v1.sql,得到版本1,再执行v2.sql,得...
2018-06-18 03:45:22 sql脚本
-
menu控件绑定sql数据库
1 public int treeID; 2 3 protected void Page_Load( object sender, EventArgs e) 4 { 5 SqlConnection CN = new SqlConnection( " Data Source=.;Initial Catalog=TD;Integrated Security=True " ); 6 // 设定数据库操作命令 7 CN.Open(); 8 SqlCommand Scmd = new...
2018-06-18 03:45:19
-
c# 把 颜色值Hex 转换为 Color
原文: http://abujj.me/archives/695 Assuming you mean the HTML type RGB codes (called Hex codes, such as #FFCC66), use theColorTranslatorclass: System.Drawing.Color col = System.Drawing.ColorTranslator.FromHtml( " #FFCC66 " ); If, however you are usi...
2018-06-18 03:45:16
-
Js获取Gridview中Dropdownlist选中状态
在Gridview中加入Dropdownlist模板列,加入DropDownlist 是一种常用的操作,其中涉及到如何获取选择项和Gridview重新绑定两个要点。 如图 前台代码如下 1 %@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication2.WebF...
2018-06-18 03:45:15
-
一个简单的ajax上传 上传进度显示
本例用了jquery.form.js请到演示页面查看 CSS Code style form{ display : block ; margin : 20px auto ; background : #eee ; border -radius: 10px ; padding : 15px } #progre ss{ position : relative ; width : 400px ; border : 1px solid #ddd ; padding : 1px...
2018-06-18 03:45:14
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash




