private void ProcessGateSerialErrorMarshal(string message) { object[] args = { message }; ProcessSerialDataMarshalDelegate del = new ProcessSerialDataMarshalDelegate(ProcessGateError); base.Invoke(del, args); }
internal void ProcessInputSerialDataMarshal(string textToDisplay) { //if (InvokeRequired) //{ object[] args = new object[1] { textToDisplay }; ProcessSerialDataMarshalDelegate del = new ProcessSerialDataMarshalDelegate(ProcessInputSerialData); this.Invoke(del, args); //} //else //{ // ProcessInputSerialData(textToDisplay); //} }