2011年4月5日
摘要: 1、DateTime 数字型System.DateTime currentTime=new System.DateTime();1.1 取当前年月日时分秒currentTime=System.DateTime.Now;1.2 取当前年int 年=currentTime.Year;1.3 取当前月int 月=currentTime.Month;1.4 取当前日int 日=currentTime.Day;1.5 取当前时int 时=currentTime.Hour;1.6 取当前分int 分=currentTime.Minute;1.7 取当前秒int 秒=currentTime.Second;1 阅读全文
posted @ 2011-04-05 19:49 huadust 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 这几天在做自己的一个小程序,因为使用了3层架构,运行目录下有很多dll文件,最终发布时,我打算将dll文件都合并到exe文件中去。微软发布的免费软件ILmerge可以完成这项工作,研究了一下,其用法如下:1、合并file1.dll、file2.dll到destination.dllILmerge /ndebug /target:dll /out:C:\destination.dll /log C:\file1.dll C:\file2.dll2、合并file1.dll、file2.dll以及myApp.exe到newApp.exeILmerge /ndebug /target:winexe / 阅读全文
posted @ 2011-04-05 17:43 huadust 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 3publicvoidAddTree(intParentID,TreeNodepNode)4{5DataViewdvTree=newDataView(ds.Tables[0]);6dvTree.RowFilter="[PARENTID]="+ParentID;7foreach(DataRowViewRowindvTree)8{9if(pNode==null)10{11TreeNodeNode=treeView1.Nodes.Add(Row["ConText"].ToString());12AddTree(Int32.Parse(Row["ID& 阅读全文
posted @ 2011-04-05 17:41 huadust 阅读(205) 评论(0) 推荐(0) 编辑