/// <summary> /// Enables a user/developer to add an error handler to the model in real time, /// (e.g. during a simulation run) and ensures that that handler is called for /// any errors currently in existence in the model. /// </summary> /// <param name="theErrorHandler">The error handler delegate that is to receive notification of the error events.</param> public void AddErrorHandler(IErrorHandler theErrorHandler) { foreach (IModelError error in m_errors) { if (theErrorHandler.HandleError(error)) { m_errors.Remove(error.Target, error); break; } } ErrorHandlers.Add(theErrorHandler); }
private static void exec_ExecutiveFinished(IExecutive exec) { m_channels.Remove(exec); }