void TasClient_Output(object sender, EventArgs <KeyValuePair <string, object[]> > e) { if (e != null && e.Data.Value != null) { var entry = new ToServerLine(e.Data.Key, e.Data.Value.Select(a => a.ToString()).ToArray()); entries.Add(entry); if (prevVis) { Program.MainWindow.InvokeFunc(() => textBox.AddLine(entry)); } } }
void TasClient_Output(object sender, string o) { if (o != null) { var entry = new ToServerLine(o); entries.Add(entry); if (prevVis) { Program.MainWindow.InvokeFunc(() => textBox.AddLine(entry)); } } }