comparison Implab.Diagnostics.Interactive/TraceForm.cs @ 204:cbb0bd8fc0d1 v2

Fixed broken Implab.Diagnostics.Interactive
author cin
date Mon, 24 Oct 2016 11:24:45 +0300
parents d9d794b61bb9
children
comparison
equal deleted inserted replaced
203:4d9830a9bbb8 204:cbb0bd8fc0d1
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)) {