Example #1
0
        private void RefreshIsThisOnStackFrame(VisualViewModel vvm)
        {
            vvm.IsThisOnStackFrame = false;
            if (_VSI == null)
            {
                return;
            }
            var obj = _VSI.GetExpression("this._ID") as string;

            if (obj == null)
            {
                return;
            }
            if (obj == vvm.ID.ToString())
            {
                vvm.IsThisOnStackFrame = true;
            }
        }
Example #2
0
        protected VisualViewModel CreateVisualViewModel(DebugInteropCache cache)
        {
            var vvm = new VisualViewModel
            {
                ID       = cache.ID,
                Name     = cache.Name,
                TypeName = cache.TypeName,
            };

            if (string.IsNullOrWhiteSpace(vvm.Name))
            {
                vvm.Name = null;
            }
            if (cache.Children != null)
            {
                vvm.VisualChildren = new ObservableCollection <VisualViewModel>(cache.Children.Select(CreateVisualViewModel));
            }
            return(vvm);
        }