/// <summary> /// Change the state of the current program /// </summary> /// <param name="source">The source from where we changed the state (an interpreter usually)</param> /// <param name="e">The new state</param> internal override void ChangeState(object source, AlgorithmInterpreterStateEventArgs e) { base.ChangeState(source, e); if (e.State != AlgorithmInterpreterState.Log) { State = e.State; } }
/// <summary> /// Change the state of the current interpreter /// </summary> /// <param name="source">The source from where we changed the state (an interpreter usually)</param> /// <param name="e">The new state</param> internal virtual void ChangeState(object source, AlgorithmInterpreterStateEventArgs e) { if (e.State == AlgorithmInterpreterState.StoppedWithError) { Failed = true; } else if (e.State == AlgorithmInterpreterState.Stopped) { Stopped = true; } if (StateChanged != null) { StateChanged(source, e); } }