コード例 #1
0
 private void EventLogSink(IUPnPTestGroup sender, LogStruct log)
 {
     this.BeginInvoke(new UpdateLogForCurrentTestHandler(UpdateLogForCurrentTest), new object[] { sender, log });
 }
コード例 #2
0
        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));
        }