/// <summary> /// Constuctor. /// </summary> /// <param name="viewModelStore">The store this view model belongs to.</param> /// <param name="element">Element to be hosted by this view model.</param> /// <param name="parentVM">Parent view model. Can be null.</param> /// <param name="bCallInitialize"></param> public BaseSpecificModelElementViewModel(ViewModelStore viewModelStore, ModelElement element, BaseModelElementViewModel parentVM, bool bCallInitialize) : base(viewModelStore, element, true, false) { this.parentVM = parentVM; if (bCallInitialize) { this.Initialize(); } }
/// <summary> /// Constuctor. /// </summary> /// <param name="viewModelStore">The store this view model belongs to.</param> /// <param name="element">Element to be hosted by this view model.</param> /// <param name="parentVM">Parent view model. Can be null.</param> public BaseSpecificModelElementViewModel(ViewModelStore viewModelStore, ModelElement element, BaseModelElementViewModel parentVM) : this(viewModelStore, element, parentVM, true) { }