private void EventLogSink(IUPnPTestGroup sender, LogStruct log) { this.BeginInvoke(new UpdateLogForCurrentTestHandler(UpdateLogForCurrentTest), new object[] { sender, log }); }
private void UpdateLogForCurrentTest(IUPnPTestGroup sender, LogStruct log) { if (sender != displaytestinfo) return; int icon = this.getImageIndexForLogImportance(log.importance); logListBox.Items.Add(new ListViewItem(new string[] { log.LogEntry }, icon)); }