Ejemplo n.º 1
0
        public void RemoveSimulation(ISimulation simulation)
        {
            _lazyLoadTask.Load(simulation);
            if (_parameterIdentification.AnyOutputOfSimulationMapped(simulation))
            {
                var viewResult = _dialogCreator.MessageBoxYesNo(Captions.ParameterIdentification.ReallyDeleteSimulationUsedInParameterIdentification(simulation.Name));
                if (viewResult == ViewResult.No)
                {
                    return;
                }
            }

            _parameterIdentification.RemoveSimulation(simulation);
            _view.DestroyNode(simulation.Id);
            SimulationRemoved(this, new SimulationEventArgs(simulation));
        }