public SceneEntityViewModel(MainWindow wnd, SceneEntity entity, bool is_expanded) { wnd_ = wnd; entity_ = entity; is_expanded_ = is_expanded; foreach (var child in entity_.Children) { children_.Add(new SceneEntityViewModel(wnd, child, false)); } }
public SceneEntityViewModel(MainWindow wnd, SceneEntity entity) : this(wnd, entity, true) { }