private void WriteInput(string input, Color color, Boolean isRaiseEvent = true) { //Invoke((Action)(() => { lastInput = input; // Write the input. processInterace.WriteInput(input); // Fire the event. if (isRaiseEvent) FireConsoleInputEvent(input); //})); }