public void DisplayTooltip(string text, bool showInNotification) { if (showInNotification) { notification.InvokeAsyncSafe(() => notification.DisplayTooltip(text)); } else { form.InvokeAsyncSafe(() => form.DisplayTooltip(text)); } }