public ComboTreeGenericVM(int tabg)
        {
            //Items = new List<SomeHierarchyViewModel>();
            //MontaTree(tabg);
            Items = GIComboTreeUtils.ReturnTree(tabg);

            if (Items.Count > 0)
            {
                this.SelectedItem = this.Items[0];
            }
        }
Beispiel #2
0
        public SomeHierarchyViewModel(string title, List <SomeHierarchyViewModel> children, SomeHierarchyViewModel parent = null)
        {
            this.Title    = title;
            this.Parent   = parent;
            this.Children = children;

            if (this.Children != null)
            {
                this.Children.ForEach(ch => ch.Parent = this);
            }
        }