Пример #1
0
 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));
         }
     }
 }
Пример #2
0
 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));
         }
     }
 }