//--------------------------------------------------------------------- public TViewPortfolioViewModel(Portfolio p) { this.Parent = null; this.portoflio = p; this.Name = p.ToString(); this.Children = new ReadOnlyCollection<ElementViewModel>((from pgroup in this.portoflio.ProductGroups select new TViewProductGroupViewModel(pgroup, this)).ToList<ElementViewModel>()).ToList(); }