Example #1
0
        /// <summary>
        /// Deletes a view model for the given element from the children collection of the current vm.
        /// </summary>
        /// <param name="element">Element.</param>
        protected virtual void RemoveChildElement(ModelElement element)
        {
            // remove VModellvariante from children collection
            BaseModelElementTreeViewModel viewModel = this.FindViewModel(element);

            if (viewModel != null)
            {
                viewModel.Dispose();
            }
            viewModel = null;
        }