public static UIThreadInvoke ( this control, System.Action code ) : void | ||
control | this | |
code | System.Action | |
return | void |
public static void UIThreadInvoke(this Control control, Action code)
{
if (control.InvokeRequired)
{
control.Invoke(code);
return;
}
code.Invoke();
}