public InfoTreeViewModel(Info _rootInfo) { this.rootInfo = new InfoViewModel(_rootInfo); this.firstGeneration = new ReadOnlyCollection <InfoViewModel>( new InfoViewModel[] { this.rootInfo }); }
public InfoTreeViewModel(Info _rootInfo) { this.rootInfo = new InfoViewModel(_rootInfo); this.firstGeneration = new ReadOnlyCollection<InfoViewModel>( new InfoViewModel[] { this.rootInfo }); }
private InfoViewModel(Info _info, InfoViewModel _parent) { this.info = _info; this.parent = _parent; this.children = new ReadOnlyCollection<InfoViewModel>( (from __child in this.info.Children select new InfoViewModel(__child, this)) .ToList<InfoViewModel>()); }
private InfoViewModel(Info _info, InfoViewModel _parent) { this.info = _info; this.parent = _parent; this.children = new ReadOnlyCollection <InfoViewModel>( (from __child in this.info.Children select new InfoViewModel(__child, this)) .ToList <InfoViewModel>()); }