Ejemplo n.º 1
0
        /// <summary>
        /// 监听进程
        /// </summary>
        /// <param name="p"></param>
        /// <param name="address"></param>
        private void WatchProcess(Process process, string address)
        {
            ProcessRestart objProcessRestart = new ProcessRestart(process, address);
            Thread         thread            = new Thread(new ThreadStart(objProcessRestart.RestartProcess));

            thread.Start();
        }
 /// <summary>
 /// 监听进程
 /// </summary>
 /// <param name="p"></param>
 /// <param name="address"></param>
 private void WatchProcess(Process process, string address)
 {
     ProcessRestart objProcessRestart = new ProcessRestart(process, address);
     Thread thread = new Thread(new ThreadStart(objProcessRestart.RestartProcess));
     thread.Start();
 }