04 2007 档案

摘要:6.1下面为用到委托的几种情况启动线程--在C#中,可以告诉计算机并行运行新的执行序列,这种序列就称为线程,通过System.Threading.Thread的一个实例使用方法Sta通用类库--在通用类库中执行子任务时,要用到委托。事件--GUI编程中也经常用盗委托事例:void EntryPoint(){//do anything;}//通过下面的代码执行新线程Thread NewThread ... 阅读全文
posted @ 2007-04-07 20:49 David.You 阅读(199) 评论(0) 推荐(0)
摘要:(Oh baby baby)(Oh baby baby)Oh baby babyHow was I supposed to knowThat something was't right hereOh baby babyI shouldn't have let you goAnd now you're out of sight,yeahShow me how you want it to beTel... 阅读全文
posted @ 2007-04-04 17:17 David.You
摘要:BEAT ITWritten and Composed by Michael Jackson, 1982.They Told Him Don't You Ever Come Around HereDon't Wanna See Your Face, You Better DisappearThe Fire's In Their Eyes And Their Words Are Really Cle... 阅读全文
posted @ 2007-04-04 17:16 David.You 阅读(218) 评论(0) 推荐(0)
摘要:遍历所有行,获取对应行对应列值的统计,此函数写在RowDataBind事件中intmysum1=0;intmysum2=0;protectedvoidGridList_RowDataBound(objectsender,GridViewRowEventArgse){if(e.Row.RowType==DataControlRowType.DataRow){DataRowViewmyrows=(Da... 阅读全文
posted @ 2007-04-04 17:13 David.You 阅读(276) 评论(0) 推荐(0)
摘要:public voidmain(string[] args){Byte b = 255;checked{b++;}Console.WriteLine(b.ToString());}Results:Unhandled Exception :System.OverflowException:Arithmetic opertation resulted in an overflow at ...;if ... 阅读全文
posted @ 2007-04-02 15:44 David.You 阅读(222) 评论(0) 推荐(0)
摘要:Condition?True_Value:Flase_ValueExplain:if(Condition == True){return True_Value;}else{returnFlase_Value;}Condition:Boolean ExpressionTrue_Value:The Return Value When Condition Is TrueFalse_Value:The R... 阅读全文
posted @ 2007-04-01 22:03 David.You 阅读(197) 评论(0) 推荐(0)