コード例 #1
0
 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));
         }
     }
 }
コード例 #2
0
 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));
         }
     }
 }