private void TraceVariable(SharedVariable sv) { string s = String.Format("[Tracer] {0}{1} {2} = {3}", sv.Type, sv.IsArray ? "[]" : String.Empty, sv.Name, sv.ReadStringData()); this.consoleManager.Report(s); }
public void ReadCommand(string s) { if (!this.blackboard.VirtualModule.SharedVariables.Contains(s)) { Console.WriteLine("Unknown shared variable {0}", s); return; } SharedVariable sv = this.blackboard.VirtualModule.SharedVariables[s]; ConsoleColor color = Console.ForegroundColor; Console.ForegroundColor = ConsoleColor.White; Console.Write("{0}{1} {2} = ", sv.Type, sv.IsArray ? "[]" : String.Empty, sv.Name); Console.ForegroundColor = color; Console.WriteLine(sv.ReadStringData()); }