摘要: List<Apple> listApples = new List<Apple>(); listApples.Add(new Apple("1","1","1")); listApples.Add(new Apple("2", "2", "2")); listApples.Add(new Apple("3", "3", "3")); listApples.Add(new Apple(" 阅读全文
posted @ 2013-05-07 20:46 Predator 阅读(184) 评论(0) 推荐(0) 编辑
摘要: this.richTextBox1.Focus(); for(int i=65;i<91;i++) { char Letter=(char)i; SendKeys.Send(Letter.ToString()); System.Threading.Thread.Sleep(100); SendKeys.Flush(); } for(int i=97;i<123;i++) { char Letter=(char)i; SendKeys.Send(Letter.ToString()); System.Threading.Thread.Sleep(100); SendKeys.Fl... 阅读全文
posted @ 2013-05-07 20:45 Predator 阅读(279) 评论(0) 推荐(0) 编辑
摘要: private void button1_Click(object sender, EventArgs e) { Process[] allProcess = Process.GetProcesses(); foreach (Process p in allProcess) { string processName = "WinConst.vshost"; // 判断主程序是否在运行 if (processName.ToLower().Trim() == p.ProcessName.ToLower().Trim()) { for (int i = 0; i < p.T 阅读全文
posted @ 2013-05-07 20:44 Predator 阅读(615) 评论(0) 推荐(0) 编辑
摘要: if (Directory.Exists(@"E:\Gan")) { DirectoryInfo dir=new DirectoryInfo(@"E:\Gan"); FileInfo[] files = dir.GetFiles(); dir.Refresh(); } 阅读全文
posted @ 2013-05-07 20:43 Predator 阅读(212) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text; namespaceConTestRandom{classCheckUpdate{ publicstaticIEnumerable<int>Show(int[]nums){yieldreturnnums.Max();yieldreturnnums.Min();yieldreturnnums.Sum();} staticvoidGetValue(int[]datas,outintmin,outintmax,outintsum){m 阅读全文
posted @ 2013-05-07 20:42 Predator 阅读(227) 评论(0) 推荐(0) 编辑