Ejemplo n.º 1
0
 /// <summary>
 /// Sets the lines.
 /// </summary>
 /// <param name="textBoxBase">The text box base.</param>
 /// <param name="value">The value.</param>
 public static void SetLines(this TextBoxBase textBoxBase, IEnumerable <string> value)
 {
     if (textBoxBase.InvokeRequired)
     {
         textBoxBase.BeginInvoke(new MethodInvoker(() => textBoxBase.SetLines(value)));
     }
     else
     {
         textBoxBase.Lines = value.ToArray();
         textBoxBase.Refresh();
     }
 }