/// <summary> /// 查找进程 /// </summary> /// <returns>true表示找到,false表示未找到</returns> public bool Search() { //foreach (Process p in Process.GetProcesses()) //{ // if (p.ProcessName == ProcessName) // { // return true; // } //} //return false; return(ZKJProcess.Search(ProcessName)); }
/// <summary> /// 关闭进程 /// </summary> public void Close() { ZKJProcess.Close(ProcessName); }