Ejemplo n.º 1
0
        public async void Add(VariableObject model)
        {
            var newWatch = new WatchViewModel(this, _debugManager.CurrentDebugger, model);

            await newWatch.Evaluate(_debugManager.CurrentDebugger);

            Dispatcher.UIThread.InvokeAsync(() => { Children.Add(newWatch); });

            //InvalidateColumnWidths();
        }
Ejemplo n.º 2
0
        private async void Expand()
        {
            foreach (var child in Children)
            {
                if (child.Children == null)
                {
                    child.Children = new ObservableCollection <WatchViewModel>();

                    if (!child.Model.AreChildrenEvaluated)
                    {
                        await child.Model.EvaluateChildrenAsync();

                        for (var i = 0; i < child.Model.Children.Count; i++)
                        {
                            var newchild = new WatchViewModel(watchList, debugger, child.Model.Children[i]);
                            await newchild.Evaluate(debugger);

                            child.Children.Add(newchild);
                        }
                    }
                }
            }
        }