Ejemplo n.º 1
0
 private void WriteHighlight(string message, Color highlight)
 {
     LoggerTxt.SelectionStart  = LoggerTxt.TextLength;
     LoggerTxt.SelectionLength = 0;
     LoggerTxt.SelectionColor  = highlight;
     LoggerTxt.AppendText(message);
 }
Ejemplo n.º 2
0
 private void Display(string message, Color highlight)
 {
     LoggerTxt.SelectionStart  = LoggerTxt.TextLength;
     LoggerTxt.SelectionLength = 0;
     LoggerTxt.SelectionColor  = highlight;
     LoggerTxt.AppendText(message + (DisplayVisualSplit ? "\n--------------------\n" : "\n"));
     LoggerTxt.SelectionStart = LoggerTxt.TextLength;
     LoggerTxt.ScrollToCaret();
     Application.DoEvents();
 }
Ejemplo n.º 3
0
 public void WriteHighlight(string value, Color highlight)
 {
     if (InvokeRequired)
     {
         Invoke(_writeHighlight, value, highlight);
     }
     else
     {
         LoggerTxt.SelectionStart  = LoggerTxt.TextLength;
         LoggerTxt.SelectionLength = 0;
         LoggerTxt.SelectionColor  = highlight;
         LoggerTxt.AppendText(value);
     }
 }