public void ConnectToTask(IronPythonTask task) { task.TracebackEvent += pc.TracebackEvent; task.ExceptionEvent += Task_ExceptionEvent; pc.Watching = true; task.AddMonitor(this); }