public void Refresh() { if (StackFrameVMs != null) { StackFrameVMs.ForEach(vm => vm.Refresh()); } UpdateStackFrames(); if (InnerExceptionVMs != null) { InnerExceptionVMs.ForEach(vm => vm.Refresh()); } }
private void UpdateStackFrames() { if (StackFrameVMs == null) { return; } bool haveSource = StackFrameVMs.Any(s => !string.IsNullOrEmpty(s.FullSource)); foreach (var stackFrameVM in StackFrameVMs) { if (!haveSource || !string.IsNullOrEmpty(stackFrameVM.FullSource)) { stackFrameVM.MethodBrush = Brushes.Black; } else { stackFrameVM.MethodBrush = Brushes.Gray; } } }