Esempio n. 1
0
        protected virtual void CommandExecuted(RExececutedEventArgs e)
        {
            RExececutedEventHandler handler = rExec;

            if (handler != null)
            {
                handler(e);
            }
        }
Esempio n. 2
0
        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);
            }
        }