摘要:
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 阅读全文
摘要:
if (Directory.Exists(@"E:\Gan")) { DirectoryInfo dir=new DirectoryInfo(@"E:\Gan"); FileInfo[] files = dir.GetFiles(); dir.Refresh(); } 阅读全文
摘要:
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 阅读全文