private void R_Log(RHelper.RExececutedEventArgs e) { ConsoleColor c = Console.ForegroundColor; Console.ForegroundColor = ConsoleColor.Red; Debug.Print("{0}", e.RCmd); if (e.Output.Length > 0) { Console.ForegroundColor = ConsoleColor.Blue; Debug.Print("Result:\n{0}", e.Output); } Console.ForegroundColor = c; }
private void R_rExec(RHelper.RExececutedEventArgs e) { ConsoleColor c = Console.ForegroundColor; Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("{0}", e.RCmd); if (e.Output.Length > 0) { Console.ForegroundColor = ConsoleColor.Blue; Console.WriteLine("Result:\n{0}", e.Output); } Console.ForegroundColor = c; }