private bool loadProjectIntoContext(string fileName) { _serializationTask.LoadProject(fileName); if (_context.CurrentProject == null) { return(false); } _mruProvider.Add(fileName); notifyProjectLoaded(); return(true); }
private void compute(string projectFile) { _logger.AddInfo($"Computing file '{projectFile}'"); _serializationTask.LoadProject(projectFile); var project = _context.CurrentProject; foreach (var simulation in project.Simulations) { _logger.AddInfo($"Computing simulation '{simulation.Name}'"); try { _simulationBatchRunner.Compute(simulation); } catch (Exception e) { _logger.AddError(e.FullMessage()); } } }