01 2014 档案

摘要:DECLARE@DOCXML='C#inDepthJohnSkeet201062.30EffectiveC#BillWagner201049.00SQL2008技术内幕ItzikBen-Gan201090.20JavaScript权威指南DavidFlanagan200787.20';--查询所有书籍的分类SELECTT.C.value('@category','VARCHAR(16)')FROM@DOC.nodes('/books/book')AST(C);--查询所有C#书籍的名称,作者,价格,年份WITHBAS(SELECT 阅读全文
posted @ 2014-01-29 13:39 pnljs 阅读(4836) 评论(0) 推荐(0) 编辑
摘要:privatestringGetCanUseName(stringnewName,stringoldName,intnum){if(!File.Exists(newName)){returnnewName;}else{//存在stringext=Path.GetExtension(oldName);stringnameInfo=oldName.Replace(ext,"");returnGetCanUseName(nameInfo+"_"+(++num)+ext,oldName,++num);}}privatevoidbutton1_Click(obje 阅读全文
posted @ 2014-01-23 14:18 pnljs 阅读(162) 评论(0) 推荐(0) 编辑
摘要:当击了某个按钮相当于是按了某个键盘上按键privatevoidbtnPre_Click(objectsender,EventArgse){this.treeView1.Focus();//此句必要,要不然都不知道操作的是什么。SendKeys.Send("{UP}");}上面是按钮去关联键盘。下面Send的参数的对应值http://www.cnblogs.com/sydeveloper/archive/2013/02/25/2932571.html 阅读全文
posted @ 2014-01-20 16:59 pnljs 阅读(1631) 评论(0) 推荐(0) 编辑
摘要:usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;namespaceWindowsFormsApplication1{publicpartialclassForm1:Form{ListnodeInfoList=newList();publicForm1(){InitializeComponent();}priva 阅读全文
posted @ 2014-01-20 11:53 pnljs 阅读(408) 评论(0) 推荐(0) 编辑
摘要:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading;namespaceConsoleApplication1{classProgram{staticvoidMain(string[]args){Programp=newProgram();p.Move();Console.ReadLine();}ListproductList=newList(){"AAAA","BBBB","CCCC",& 阅读全文
posted @ 2014-01-17 11:03 pnljs 阅读(235) 评论(0) 推荐(0) 编辑
摘要:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading;namespaceConsoleApplication1{classProgram{staticvoidMain(string[]args){ListproductList=newList(){"AAAA","BBBB","CCCC","DDDD","EEEE"};//货物MoveHelpermov 阅读全文
posted @ 2014-01-15 15:32 pnljs 阅读(580) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示