public DeredundafierViewModel(DeredundafierDTO data, DeredundafierViewModel parent) { Data = data; Parent = parent; Children = new ObservableCollection <DeredundafierViewModel>(); }
public PassiveViewModel(DeredundafierDTO data, DeredundafierViewModel parent) : base(data, parent) { foreach (DeredundafierDTO child in data.Children) { Children.Add(new PassiveViewModel(child, this)); } }
public void Add(DeredundafierViewModel model) { ViewModels.Add(model); }