コード例 #1
0
 private void AddLog(ListBox listBox, Helper.LogEntity logEntity)
 {
     if (listBox.InvokeRequired)
     {
         listBox.Invoke(new Action(() => listBox.Items.Insert(0, logEntity.Message)));
     }
     else
     {
         listBox.Items.Insert(0, logEntity.Message);
     }
 }
コード例 #2
0
 private void TlRunner_LogEvent(Helper.LogEntity logEntity)
 {
     AddLog(this.logTelegram, logEntity);
 }
コード例 #3
0
 private void BaleRunner_LogEvent(Helper.LogEntity logEntity)
 {
     AddLog(this.logBale, logEntity);
 }