/// <summary> /// Initializes a new instance of the <see cref="SubListTabViewModel"/> class. /// </summary> /// <param name="model">The model.</param> public SubListTabViewModel(ListTabViewModel <TEntity> model) : this() { ListTabViewModel = model; }
/// <summary> /// Adds the sub list tab view model. /// </summary> /// <param name="subModel">The sub model.</param> public void AddSubListTabViewModel(ListTabViewModel <TEntity> subModel) { SubListTabViewModels.Add(new SubListTabViewModel(subModel)); subModel.ParentViewModel = this; }