ATML1671Translator.controls.ControlExtensions.UIThread C# (CSharp) Method

UIThread() public static method

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