public CodeBase Analyze(string configFile, string projectFileLocation) { var commandArgument = fileDeserializer.Deserialize(configFile); var codeBase = Analyze(commandArgument); var projectResultFileName = $"{commandArgument.ProjectName}.project"; var projectResultFile = Path.Combine(projectFileLocation, projectResultFileName); codebaseService.Save(codeBase, projectResultFile); return(codeBase); }
public void Save() { var dialog = new SaveFileDialog { Filter = "Metropolis Project File (*.project)|*.project", AddExtension = true }; if (!dialog.ShowDialog().GetValueOrDefault(false)) { return; } using (new WaitCursor()) { codebaseService.Save(CodeBase, dialog.FileName); } }