void OnDismiss(object sender, EventArgs e) { if (command != null) { command.Execute(null); } if (tooltip != null) { tooltip.Dispose(); } }