Skip to content

Instantly share code, notes, and snippets.

@felixlindemann
Created March 3, 2015 23:24
Show Gist options
  • Save felixlindemann/4382f53d3b4378ed5662 to your computer and use it in GitHub Desktop.
Save felixlindemann/4382f53d3b4378ed5662 to your computer and use it in GitHub Desktop.
EventArgs for R.Net executed
using System;
using RDotNet;
namespace RepertoryGrid.BaseClasses
{
public delegate void RExececutedEventHandler(RExececutedEventArgs e);
public class RExececutedEventArgs : EventArgs
{
public String RCmd { get; set; }
public String Output { get; set; }
public SymbolicExpression Result { get; set; }
public Exception RExececutedException { get; set; }
/// <summary>
///
/// </summary>
/// <param name="c">The Executed Command</param>
/// <param name="o">The output reported from sink</param>
/// <param name="s">The returned Symbolic Expression</param>
/// <param name="ex">an Exception raised</param>
///
public RExececutedEventArgs(String c, String o, SymbolicExpression s = null, Exception ex = null)
{
this.RCmd = c;
this.Output = o;
this.Result = s;
this.RExececutedException = ex;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment