上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 63 下一页
摘要: 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) 编辑
摘要: usingSystem;usingSystem.Collections;usingSystem.Collections.Generic;usingSystem.Net;usingSystem.IO;usingSystem.Text;usingSystem.Drawing;usingSystem.Text.RegularExpressions; namespaceConsoleApplication1{classProgram{staticvoidMain(string[]args){Console.WriteLine("请输入吃饭的类型:");stringmealType= 阅读全文
posted @ 2013-05-05 21:20 Predator 阅读(217) 评论(0) 推荐(0) 编辑
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 63 下一页