コード例 #1
0
 public void Refresh()
 {
     if (StackFrameVMs != null)
     {
         StackFrameVMs.ForEach(vm => vm.Refresh());
     }
     UpdateStackFrames();
     if (InnerExceptionVMs != null)
     {
         InnerExceptionVMs.ForEach(vm => vm.Refresh());
     }
 }
コード例 #2
0
        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;
                }
            }
        }