//将View类型的枚举赋给ComBox1的数据源
ComboBox1.DataSource = Enum.GetNames(typeof(View));
//将系统进程封进数组,lambda表达
string[] processes =System.Dignostics.Process.GetProcess().Select(p =>p.ProcessName).ToArray();
//将数组放进ListView
Array.ForEach(processes, p => listView1.Add(new ListViewItem(p,0)));