public void GuiAsync(MethodInvoker action)
{
if (action == null)
throw new ArgumentNullException("action");
if (!this.InvokeRequired)
action();
else
this.Invoke(action);
}
We use cookies to ensure the best experience on our website. By continuing to use our site, you agree to the use of cookies.
Comments (4)
Login or Create account, Log in or register to leave a comment
Это всего лишь обертка:
Вся магия в WPF.
Спасибо
Насколько я понял GuiAsync используется для маршалинга в поток формы.. Это так?
Для Windows.Forms код может выглядеть как то так: