摘要: //简单工厂 //读卡器抽象类 public abstract class CardRader { //初始化 public abstract int init(); //读卡返回卡号 public abstract string ReadID(); //退卡 public abstract void ExitCard(); //....等等其他方法 ... 阅读全文
posted @ 2016-03-17 16:40 幽谷清水 阅读(151) 评论(0) 推荐(0) 编辑
摘要: //N年项目中用过的 //便民终端机器设备工厂模式范例 //读卡器 ( 广东 CRT310 ---深圳TTCE-M100) //金属加密键盘 ( 深圳柏德盛B6100A --深圳凯明金属加密键盘KMY3501B) //读卡器抽象类 public abstract class CardRader { //初始化 public abstract int init(); ... 阅读全文
posted @ 2016-03-17 16:30 幽谷清水 阅读(292) 评论(0) 推荐(0) 编辑