private void Examine() { SetEnbled(false); foreach (DS复选框 ip in IpPanel.Panel.Controls) { if (ip.Checked) { foreach (DS复选框 course in coursePanel.Panel.Controls) { if (course.Checked) { ShowMsg($"{ip.Text}残余:" + Wmi.SelectProcess(ip.Text, "blacknull", "ndqatest2021.*+", course.Text)); } } } } SetEnbled(true); }
private void Open() { SetEnbled(false); foreach (DS复选框 ip in IpPanel.Panel.Controls) { if (ip.Checked) { if (ip.Text == "192.168.255.131") { ShowMsg($"{ip.Text}开启:" + Wmi.OpenProcess(ip.Text, "blacknull", "ndqatest2021.*+", $@"D:\developer\平台控制器\{comboHQ.Text}")); System.Threading.Thread.Sleep(3000); } ShowMsg($"{ip.Text}开启:" + Wmi.OpenProcess(ip.Text, "blacknull", "ndqatest2021.*+", $@"D:\developer\平台控制器\{comboBranch.Text}")); System.Threading.Thread.Sleep(1000); } } SetEnbled(true); }