void TasClient_Input(object sender, TasInputArgs e) { if (e != null && e.Command != null) { var entry = new FromServerLine(e.Command, e.Args); entries.Add(entry); if (prevVis) { Program.MainWindow.InvokeFunc(() => textBox.AddLine(entry)); } } }
void TasClient_Input(object sender, string o) { if (o != null) { var entry = new FromServerLine(o); entries.Add(entry); if (prevVis) { Program.MainWindow.InvokeFunc(() => textBox.AddLine(entry)); } } }