COMPortTerminal.MainForm.AccessFormMarshal C# (CSharp) Method

AccessFormMarshal() private method

Enables accessing the form from another thread. The parameters match those of AccessForm()
private AccessFormMarshal ( string action, string textToDisplay, Color textColor ) : void
action string a string that names the action to perform on the form
textToDisplay string
textColor Color a system color for displaying text
return void
        private void AccessFormMarshal( string action, string textToDisplay, Color textColor )
        {
            AccessFormMarshalDelegate AccessFormMarshalDelegate1;

            AccessFormMarshalDelegate1 = new AccessFormMarshalDelegate( AccessForm );

            object[] args = { action, textToDisplay, textColor };

            //  Call AccessForm, passing the parameters in args.

            base.Invoke(AccessFormMarshalDelegate1, args);
        }