private void IPCF_FormClosed(object sender, FormClosedEventArgs e) { IronPythonConsoleForm ipcf = sender as IronPythonConsoleForm; ipcf.Dispose(); }