WindowsFormsApplication1.Form1.updateUITextLine C# (CSharp) Method

updateUITextLine() private method

private updateUITextLine ( RichTextBox control, string text, string end, Color color ) : void
control RichTextBox
text string
end string
color Color
return void
        private void updateUITextLine(RichTextBox control, string text, string end, Color color)
        {
            control.Invoke(new Action(() =>
            {
                control.SelectionColor = color;
                control.AppendText(text + end);
                control.ScrollToCaret();
            }));
        }