public override void PrintAll() { int longestLine; string message = this.GetText(out longestLine); using (TextShower shower = new TextShower(message)) { shower.Text = ""; shower.Width = 7 * longestLine; shower.ShowDialog(); } }
public void PrintAll(MessageLog messageLog) { string message; messageLog.PrintAll(); message = lastMessages.ToString(); using (TextShower shower = new TextShower(message)) { shower.Text = ""; shower.ShowDialog(); } }
public void PrintAll(MessageLog messageLog) { string message; using (StringWriter writer = new StringWriter()) { messageLog.WriteToStream(writer); message = writer.ToString(); } using (TextShower shower = new TextShower(message)) { shower.Text = ""; shower.ShowDialog(); } }