Ejemplo n.º 1
0
        public static bool IsProcessExist()
        {
            bool isAlive = false;

            foreach (var process in ProcessList.GetProcessList())
            {
                foreach (var myProcess in ProcessList.ImportProcessList())
                {
                    //Trace.WriteLine("test");
                    if (myProcess.Name.Equals(process.Name))
                    {
                        Trace.WriteLine("ON A PROCESS");
                        isAlive = true;
                    }
                }
            }
            return(isAlive);
        }