protected virtual void CommandExecuted(RExececutedEventArgs e) { RExececutedEventHandler handler = rExec; if (handler != null) { handler(e); } }
void rEngine_rExec(RExececutedEventArgs e) { try { if (e.RCmd.Length > 0) { RichtTextboxHelper.AddText(richTextBoxRScript, "> " + e.RCmd, Color.Red); } if (e.Output.Length > 0) { RichtTextboxHelper.AddText(richTextBoxRScript, e.Output, Color.Blue); } // if (e.RExececutedException != null) throw e.RExececutedException; } catch (Exception) { // Debug.Print(ex.StackTrace); } }