iSpyApplication.MainForm.ProcessCommandString C# (CSharp) Method

ProcessCommandString() private method

private ProcessCommandString ( string command ) : void
command string
return void
        internal void ProcessCommandString(string command)
        {
            int i = command.ToLower().IndexOf("commands ", StringComparison.Ordinal);
            if (i != -1)
            {
                command = command.Substring(i + 9);
                string[] commands = command.Trim('"').Split('|');
                foreach (string command2 in commands)
                {
                    if (!string.IsNullOrEmpty(command2))
                    {
                        Logger.LogMessageToFile("Running Command: " + command2);
                        if (InvokeRequired)
                            Invoke(new Delegates.ExternalCommandDelegate(ProcessCommandInternal), command2.Trim('"'));
                        else
                            ProcessCommandInternal(command2.Trim('"'));
                    }
                }
            }
        }
MainForm