Animatroller.Simulator.Extensions.FormExtensions.UIThread C# (CSharp) Method

UIThread() public static method

public static UIThread ( this form, MethodInvoker code ) : void
form this
code MethodInvoker
return void
        public static void UIThread(this System.Windows.Forms.Control form, MethodInvoker code)
        {
            if (form.InvokeRequired)
            {
                form.Invoke(code);
                return;
            }
            code.Invoke();
        }
FormExtensions