예제 #1
0
        protected override void ClearModel(IEnumerable <PKSimProject> model)
        {
            var projects = model?.ToList();

            base.ClearModel(projects);
            _registrationTask.UnregisterProject(projectFrom(projects));
        }
예제 #2
0
        public void CloseProject()
        {
            if (_project == null)
            {
                return;
            }

            _eventPublisher.PublishEvent(new ProjectClosingEvent());
            _registrationTask.UnregisterProject(_project);
            HistoryManager = null;
            _workspacePersistor.CloseSession();
            Clear();
            _eventPublisher.PublishEvent(new ProjectClosedEvent());
        }