Amphibian.Debug.MemoryTracker.CommandExecute C# (CSharp) Method

CommandExecute() private method

memory command implementation.
private CommandExecute ( IDebugCommandHost host, string command, IList arguments ) : void
host IDebugCommandHost
command string
arguments IList
return void
        private void CommandExecute(IDebugCommandHost host, string command, IList<string> arguments)
        {
            if (arguments.Count == 0)
                Visible = !Visible;

            foreach (string arg in arguments) {
                switch (arg.ToLower()) {
                    case "on":
                        Visible = true;
                        break;
                    case "off":
                        Visible = false;
                        break;
                }
            }
        }