Exemplo n.º 1
0
 private void AppendText(string text)
 {
     if (ResultsRTB.InvokeRequired)
     {
         AppendTextCallback d = new AppendTextCallback(AppendText);
         ResultsRTB.BeginInvoke(d, new object[] { text });
     }
     else
     {
         ResultsRTB.AppendText(text);
     }
 }
Exemplo n.º 2
0
 private void ClearText()
 {
     if (ResultsRTB.InvokeRequired)
     {
         ClearTextCallback d = new ClearTextCallback(ClearText);
         ResultsRTB.BeginInvoke(d, new object[] { });
     }
     else
     {
         ResultsRTB.Clear();
     }
 }