protected override void ClearModel(IEnumerable <PKSimProject> model) { var projects = model?.ToList(); base.ClearModel(projects); _registrationTask.UnregisterProject(projectFrom(projects)); }
public void CloseProject() { if (_project == null) { return; } _eventPublisher.PublishEvent(new ProjectClosingEvent()); _registrationTask.UnregisterProject(_project); HistoryManager = null; _workspacePersistor.CloseSession(); Clear(); _eventPublisher.PublishEvent(new ProjectClosedEvent()); }