private void ExitButton_Click(object sender, EventArgs e) { Hide(); ApplicationEventDispatcher.Dispatch(new ProcessExiting()); }