Exemple #1
0
        private JavaWindowViewModel(JavaWindow win, JavaWindowViewModel parent)
        {
            _win    = win;
            _parent = parent;

            _children = new ReadOnlyCollection <JavaWindowViewModel>(
                (from child in _win.Children
                 select new JavaWindowViewModel(child, this))
                .ToList <JavaWindowViewModel>());
        }
Exemple #2
0
 public JavaTreeViewModel(JavaWindow rootWindow)
 {
     _rootWindow      = new JavaWindowViewModel(rootWindow);
     _firstGeneration = new ReadOnlyCollection <JavaWindowViewModel>(new JavaWindowViewModel[] { _rootWindow });
 }