private XLObjectViewModel(XLObject xlobj, XLObjectViewModel parent) { _xlobject = xlobj; Parent = parent; Children = new ReadOnlyCollection <XLObjectViewModel>( (from child in xlobj.Children select new XLObjectViewModel(child, this)) .ToList()); }
public XLObjectViewModel(XLObject xlobj) : this(xlobj, null) { }