public void SetOut(TextWriter newOut) { EventTextWriter eventTextWriter = new EventTextWriter(newOut); eventTextWriter.OnDataWrite += TextWriters_OnDataWrite; output = eventTextWriter; }
public void SetError(TextWriter newError) { EventTextWriter eventTextWriter = new EventTextWriter(newError); eventTextWriter.OnDataWrite += TextWriters_OnDataWrite; error = eventTextWriter; }