摘要: Dear Bear: 生日快乐! 恭喜你,你又老了一岁,你又虚度了一年,你离30岁又近了一步。今天(跨夜,昨天),真是个可喜可悲的日子。。。 人生就是如此,以前错过的的时间,以前肆意挥霍的青春,如今想要追回,就必须付出更多的努力,更多的辛酸。在对的时间做对的事,现在看看是多么睿智的哲学,不用说,我很愚笨。因为,该好好读书的时候,我去通宵上网玩传奇;该好好结交朋友,多多历练自己,熟练专业知识的大学时代,我却深陷DOTA的泥坑而不能自拔,不愿自拔;该好好去赚钱的日子,我却总因为知识不扎实,学识不渊博而埋头书海。。。回头看看26年来走过的不堪路,悔之,恨之。 "亡羊补牢,为时未晚" 阅读全文
posted @ 2013-05-22 01:07 冲锋撞大树 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 一些Common的方法。 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Web.Script.Serialization; 6 using System.IO; 7 using System.Runtime.Serialization.Json; 8 using System.Data; 9 using System.Xml; 10 using System.Text; 11 using System.Xml... 阅读全文
posted @ 2013-05-07 17:38 冲锋撞大树 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Web.UI; 6 using System.Web.UI.WebControls; 7 using System.Web.UI.HtmlControls; 8 9 namespace CheckDate_Simple 10 { 11 public partial class WebForm1 : System.Web.UI.Page 12 {... 阅读全文
posted @ 2013-05-06 15:25 冲锋撞大树 阅读(179) 评论(0) 推荐(0) 编辑
摘要: function GetCheckedRow() { var curRow; var items = document.getElementById('<%=gvwBaseData.ClientID%>').all; for (var i = 0; i < items.length; i++) { if (items[i].type == "checkbox") { if (items[i].checked == true) { curRow = items[i].parentNode.parentNode; break; } } } re 阅读全文
posted @ 2013-04-19 11:23 冲锋撞大树 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 上次写到简单工厂模式。如那里说的,简单工厂模式在新加入一个新产品时候,必须修改工厂类中的代码。工厂方法模式就可以很好的克服简单工厂模式中存在的问题。工厂方法模式(Factory Method Pattern):定义一个用于创建对象的接口,让子类决定将哪一个类实例化。工厂方法模式让一个类的实例化延迟到其子类。工厂方法模式又简称为工厂模式(Factory Pattern)。工厂方法模式可以克服这个问题,废话不多,上代码~~~我很懒,没画UML图,呵呵,凑合着看吧。。。using System;using System.Collections.Generic;using System.Linq;us 阅读全文
posted @ 2013-04-06 12:31 冲锋撞大树 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 工厂模式分三种:简单工厂模式,工厂方法模式,抽象工厂模式。今天看了下简单工厂模式。记得之前看《大话设计模式》时候,举例用的是面向对象的简单加减乘除计算器的设计,跟这个差不太多。就想着写写简单的代码,记录下自己学习的历程。其实,看的书很多很乱很杂,而且前面看了,后面就忘记了,最多也只是有个印象而已,现在开始多敲敲示例代码吧。仅仅是做个笔记而已,高手勿喷~~TKS~~简单工厂模式,直接贴代码。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading 阅读全文
posted @ 2013-04-05 01:03 冲锋撞大树 阅读(165) 评论(1) 推荐(0) 编辑
摘要: 最近想自学C++,那就从最基本的开始吧。学着别人很上进的样子,用博客来记录点点成长,希望有天能成为大牛。加油吧!!!#include <windows.h>#include <stdio.h>LRESULT CALLBACK WinSunProc( HWND hwnd, // handle to window UINT uMsg, // message identifier WPARAM wParam, // first message parameter LPARAM lParam // second message parameter);int WINAPI Win 阅读全文
posted @ 2013-03-22 02:06 冲锋撞大树 阅读(427) 评论(0) 推荐(1) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace Clipboard_Test{ public partial class Form1 : Form { public Form1() { InitializeCompon 阅读全文
posted @ 2013-03-13 21:21 冲锋撞大树 阅读(271) 评论(7) 推荐(0) 编辑