comparison Implab.Diagnostics.Interactive/TraceForm.cs @ 206:86b61d53b7db v2

Слияние
author cin
date Tue, 25 Oct 2016 17:40:45 +0300
parents cbb0bd8fc0d1
children
comparison
equal deleted inserted replaced
205:8200ab154c8a 206:86b61d53b7db
29 } 29 }
30 } 30 }
31 31
32 public void AddTraceEvent(TraceViewItem item) { 32 public void AddTraceEvent(TraceViewItem item) {
33 traceViewItemBindingSource.Add(item); 33 traceViewItemBindingSource.Add(item);
34 eventsDataGrid.FirstDisplayedScrollingRowIndex = eventsDataGrid.RowCount - 1; 34 if(eventsDataGrid.RowCount > 0)
35 eventsDataGrid.FirstDisplayedScrollingRowIndex = eventsDataGrid.RowCount - 1;
35 } 36 }
36 37
37 Color GetThreadColor(int thread) { 38 Color GetThreadColor(int thread) {
38 Color result; 39 Color result;
39 if (!m_threadColors.TryGetValue(thread, out result)) { 40 if (!m_threadColors.TryGetValue(thread, out result)) {