protected virtual void OnMainFormClosed (object sender, EventArgs e) { } public event EventHandler ThreadExit;