示例#1
0
        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);
        }
示例#2
0
        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();
        }