private void OnProcessExited(object sender, EventArgs e) { if (Exited != null) { Exited(sender, BaseEventArgs.Empty); } }