iSpyApplication.MainForm.ParseCommand C# (CSharp) Method

ParseCommand() private method

private ParseCommand ( string command ) : void
command string
return void
        private void ParseCommand(string command)
        {
            if (command == null) throw new ArgumentNullException("command");
            try
            {
                command = Uri.UnescapeDataString(command);

                if (command.ToLower().StartsWith("open "))
                {
                    Logger.LogMessageToFile("Loading List: " + command);
                    if (InvokeRequired)
                        Invoke(new Delegates.ExternalCommandDelegate(LoadObjectList), command.Substring(5).Trim('"'));
                    else
                        LoadObjectList(command.Substring(5).Trim('"'));

                    return;
                }
                ProcessCommandString(command);

                if (command.ToLower() == "showform")
                {
                    UISync.Execute(ShowIfUnlocked);
                }
            }
            catch (Exception ex)
            {
                Logger.LogExceptionToFile(ex);
                MessageBox.Show(LocRm.GetString("LoadFailed").Replace("[MESSAGE]", ex.Message));
            }
        }
MainForm