private void ConfigureContainer(ContainerViewModel container, TemplateViewModel source) { IWindowService containerBuilderView = _windowFactory.GetWindowService(WindowType.ContainerBuilderView); ContainerBuilderViewModel containerBuilderViewModel = new ContainerBuilderViewModel(containerBuilderView.Close, _windowFactory, source, container, _unitOfWork); containerBuilderView.OpenAsDialog(containerBuilderViewModel); }
private void CreateNewContainer(ContainerViewModel container, TemplateViewModel source) { _unitOfWork.ItemRepository.Add(container.ContainerModel); _unitOfWork.Save(); _items.Add(container); ItemToBeAdded = container; IWindowService containerBuilderView = _windowFactory.GetWindowService(WindowType.ContainerBuilderView); ContainerBuilderViewModel containerBuilderViewModel = new ContainerBuilderViewModel(containerBuilderView.Close, _windowFactory, source, container, _unitOfWork); containerBuilderView.OpenAsDialog(containerBuilderViewModel); OnClose(); }