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

UIThreadInvoke() public static method

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();
        }