示例#1
0
        private UIWindowViewModel(UIWindow win, UIWindowViewModel parent)
        {
            _win    = win;
            _parent = parent;

            _children = new ReadOnlyCollection <UIWindowViewModel>(
                (from child in _win.Children
                 select new UIWindowViewModel(child, this))
                .ToList <UIWindowViewModel>());
        }
 public UITreeViewModel(UIWindow rootWindow)
 {
     _rootWindow      = new UIWindowViewModel(rootWindow);
     _firstGeneration = new ReadOnlyCollection <UIWindowViewModel>(new UIWindowViewModel[] { _rootWindow });
 }