Exemplo n.º 1
0
        private CustGroupViewModel(CustGroup custgroup, CustGroupViewModel parent)
        {
            _custgroup = custgroup;
            _parent = parent;

            _children = new ObservableCollection<CustGroupViewModel>(
                    (from child in _custgroup.Children
                     select new CustGroupViewModel(child, this))
                     .ToList<CustGroupViewModel>());
        }
Exemplo n.º 2
0
        private CustGroupViewModel(CustGroup custgroup, CustGroupViewModel parent)
        {
            _custgroup = custgroup;
            _parent    = parent;

            _children = new ObservableCollection <CustGroupViewModel>(
                (from child in _custgroup.Children
                 select new CustGroupViewModel(child, this))
                .ToList <CustGroupViewModel>());
        }
Exemplo n.º 3
0
        public CustGroupTreeViewModel(CustGroup root)
        {
            _root = new CustGroupViewModel(root);

            _firstGeneration = new ObservableCollection<CustGroupViewModel>(
                new CustGroupViewModel[] 
                { 
                    _root
                });

            _firstGeneration.CollectionChanged += _firstGeneration_CollectionChanged;

            _searchCommand = new SearchFamilyTreeCommand(this);
        }
Exemplo n.º 4
0
        public CustGroupTreeViewModel(CustGroup root)
        {
            _root = new CustGroupViewModel(root);

            _firstGeneration = new ObservableCollection <CustGroupViewModel>(
                new CustGroupViewModel[]
            {
                _root
            });

            _firstGeneration.CollectionChanged += _firstGeneration_CollectionChanged;

            _searchCommand = new SearchFamilyTreeCommand(this);
        }
Exemplo n.º 5
0
 public CustGroupViewModel(CustGroup custgroup)
     : this(custgroup, null)
 {
 }
Exemplo n.º 6
0
 public CustGroupViewModel(CustGroup custgroup)
     : this(custgroup, null)
 {
 }