chore: Add DSQA (work-in-progress)
This commit is contained in:
1 parent
7cc7dd652f
commit
700bc45998
51 files changed
+5010
-6
No files matched your search
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace BCG
|
||||
{
|
||||
class RichTextBoxStreamWriter : TextWriter
|
||||
{
|
||||
private RichTextBox myOutput;
|
||||
|
||||
public RichTextBoxStreamWriter (RichTextBox output)
|
||||
{
|
||||
myOutput = output;
|
||||
}
|
||||
|
||||
public override void Write (char value)
|
||||
{
|
||||
//base.Write (value);
|
||||
//myOutput.AppendText (value);
|
||||
//myOutput.SelectionStart = myOutput.TextLength - 1;
|
||||
//myOutput.ScrollToCaret ();
|
||||
|
||||
MethodInvoker action = delegate
|
||||
{
|
||||
//// this is too slow to live.
|
||||
//myOutput.AppendText (value.ToString ());
|
||||
//myOutput.SelectionStart = myOutput.TextLength - 1;
|
||||
//myOutput.ScrollToCaret ();
|
||||
};
|
||||
|
||||
myOutput.BeginInvoke (action);
|
||||
|
||||
}
|
||||
|
||||
public override Encoding Encoding
|
||||
{
|
||||
get { return Encoding.UTF8; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user