コード例 #1
0
ファイル: Nox.cs プロジェクト: trananh1992/CSharp-Image-Bot
        public bool InstanceAlreadyRunning(string instanceName)
        {
            foreach (var process in Process.GetProcessesByName("Nox"))
            {
                DebugForm.Log("Opened Nox Instance: \n" + GetCommandLine(process));
                return(GetCommandLine(process).Contains(instanceName));
            }

            DebugForm.ErrorLog(instanceName + " is not running!");

            return(false);
        }